Events in Internet Explorer don't work as expected

I have a Backbone view where I bind some events to the elements of the view.
In Chrome everything works as expected, but in IE11 only one event is logged and upon close examination it does not have the same behavior:

Event
  events: {
          'click.colour': 'changeColour',
          'click.size': 'changeSize',
           "press .stop": "stopEvent",
          'click button.draw-menu': 'draw',
          'click' : "preventDefault"
  }

The view is a button that, when clicked, shows a context menu with some options (radio buttons). According to the click of the radio button (which is inside a specific div with a different class) the function is called. The problem is that when I click inside the color or size class , none of the defined events are fired, but instead the click event above is defined . I have considered event.currentTarget and event.targetfor the triggered event, and they are not only equal but also refer to the root of the view, not the clicked element. The correct event is being fired in chrome and both event.currentTarget and event.target refer to the correct element, not the root of the view.

+3
jquery internet-explorer events backbone.js


source to share


No one has answered this question yet

Check out similar questions:

1678
Binding events to dynamically created elements?
1270
Why don't self-closing script elements work?
923
jQuery multiple events to trigger the same function
380
Cookie blocked / not saved in IFRAME in Internet Explorer
367
'console' is undefined error for Internet Explorer
339
Click event does not work with dynamically generated elements
337
Run Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same computer
4
Don't get changes when the switches are pressed
3
NgBlur does not fire on Internet Explorer
0
Unable to fire event with mouse click.



All Articles
Loading...
X
Show
Funny
Dev
Pics