Skip to content

Commit

Permalink
Trigger show and hide event on textarea not ul
Browse files Browse the repository at this point in the history
  • Loading branch information
yuku committed Feb 8, 2014
1 parent 11d6208 commit 06f1f2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions jquery.textcomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,17 @@

activate: function () {
if (!this.shown) {
this.$el.show().trigger('textComplete:show')
this.$el.show();
this.completer.$el.trigger('textComplete:show');
this.shown = true;
}
return this;
},

deactivate: function () {
if (this.shown) {
this.$el.hide().trigger('textComplete:hide');
this.$el.hide();
this.completer.$el.trigger('textComplete:hide');
this.shown = false;
this.data = this.index = null;
}
Expand Down
2 changes: 1 addition & 1 deletion jquery.textcomplete.min.js

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

Loading

0 comments on commit 06f1f2c

Please sign in to comment.