MDL-77420 core: fix modal close button on remove on close
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -853,7 +853,11 @@ define([
|
||||
|
||||
CustomEvents.define(this.getModal(), [CustomEvents.events.activate]);
|
||||
this.getModal().on(CustomEvents.events.activate, SELECTORS.HIDE, function(e, data) {
|
||||
this.hide();
|
||||
if (this.removeOnClose) {
|
||||
this.destroy();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
data.originalEvent.preventDefault();
|
||||
}.bind(this));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user