Force javascript to cancel field register with required (HTML 5)?

6

I have a registration field that is required by HTML5. However, by clicking the unsubscribe button, HTML5 does not let Javascript return to the previous page! = (Requires that I fill in that required field.

How to proceed?

'click button#back': function (evt) {
            evt.stopImmediatePropagation();
            Backbone.history.navigate("/InstanciaManager", {trigger : true});
        }, 
    
asked by anonymous 12.02.2015 / 12:01

1 answer

1

When you do evt.stopImmediatePropagation() you prevent the event that was triggered from continuing to run, that is, you prevent backtracking to the previous page.

Invert the command order as follows:

'click button#back': function (evt) {
        Backbone.history.navigate("/InstanciaManager", {trigger : true});
        evt.stopImmediatePropagation();
    }
    
12.02.2015 / 12:06