Skip to content

Commit

Permalink
Merge pull request #497 from entrylabs/issue/chrome-death
Browse files Browse the repository at this point in the history
chrome short-cut death bug fix
  • Loading branch information
chanlee authored Nov 1, 2016
2 parents 51e9407 + 4586e68 commit f9dd950
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 6 additions & 1 deletion dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -21962,7 +21962,12 @@ Entry.Field = function() {
b.destroyOption = function() {
this.documentDownEvent && (Entry.documentMousedown.detach(this.documentDownEvent), delete this.documentDownEvent);
this.disposeEvent && (Entry.disposeEvent.detach(this.disposeEvent), delete this.documentDownEvent);
this.optionGroup && (this.optionGroup.remove(), delete this.optionGroup);
if (this.optionGroup) {
var a = this.optionGroup.blur;
a && Entry.Utils.isFunction(a) && this.optionGroup.blur();
this.optionGroup.remove();
delete this.optionGroup;
}
this.command();
};
b._attachDisposeEvent = function(a) {
Expand Down
12 changes: 6 additions & 6 deletions dist/entry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/workspace/field/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Entry.Field = function() {};
}

if (this.optionGroup) {
var blur = this.optionGroup.blur;
if (blur && Entry.Utils.isFunction(blur))
this.optionGroup.blur();
this.optionGroup.remove();
delete this.optionGroup;
}
Expand Down

0 comments on commit f9dd950

Please sign in to comment.