Skip to content

Commit 02e4c09

Browse files
committed
Toolbar: Fixed possible timing problem with onClick event handler
1 parent 11b2571 commit 02e4c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/client/scripts/Plugins/toolbar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ ORYX.Plugins.Toolbar = Clazz.extend({
185185

186186
this.toolbar.add(button);
187187

188-
button.getEl().onclick = function() {this.blur()}
188+
button.on('click', function() {this.blur()} );
189189
}
190190

191191
value['buttonInstance'] = button;

0 commit comments

Comments
 (0)