Why is ExtJS 5 Container click event no longer fired? -
In our 4.2.2 app we have registered a click event on a container, but it does not work in ExtJS 5 . Any ideas?
'afterrender': function (comp) {comp.getEl (). ({'Click': {fn: function (el) {this.fireEvent ('click', comp);}, scope: comp}, 'mouseover': {fn: function (L) {el.target.style .cursor = "pointer";}, scope: comp}}, comp); } Removing the scope of "Computer" from the end of the "Ongoing" call I
Before:
'afterrender': function (vamp) {comp.getEl (). ({'Click': {fn: function (el) {this .fireEvent ('click', comp);}, scope: comp}, 'mouseover': {fn: function (el) {el.target.style .cursor = "pointer";}, scope: comp}}, comp); } after:
'afterrender': function (comp) {comp.getEl (). On ({'click': {fn: function (AL) {Effer event ('click', comp);}, scope: comp}, 'mouseover': {fn: function (L) {el.target.style. Cursor = "pointer";}, scope: comp}}); }
Comments
Post a Comment