MDL-33891 Ensure that listen events are cancelled correctly when closing the dialogue
This commit is contained in:
+2
-2
@@ -249,8 +249,8 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
|
||||
},
|
||||
|
||||
hide : function() {
|
||||
// Detach the global keypress handler before hiding
|
||||
Y.one('document').detach('keyup', this.handle_key_press, this);
|
||||
// Cancel all listen events
|
||||
this.cancel_listenevents();
|
||||
|
||||
// Re-enable the page scrollbars
|
||||
if (Y.UA.ie > 0) {
|
||||
|
||||
Reference in New Issue
Block a user