Skip to content

Commit

Permalink
FIX: 选项较多时,连续使用会遇到选中项不在视野内的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
biallo committed Aug 15, 2018
1 parent b917e67 commit b5e697a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/simditor-mention.js
Expand Up @@ -195,6 +195,7 @@ SimditorMention = (function(superClass) {
this.popoverEl.find('.item:first').addClass('selected').siblings('.item').removeClass('selected');
this.popoverEl.show();
this.popoverEl.find('.item').show();
this.popoverEl.find('.items').scrollTop(0);
return this.refresh();
};

Expand Down
1 change: 1 addition & 0 deletions src/simditor-mention.coffee
Expand Up @@ -138,6 +138,7 @@ class SimditorMention extends SimpleModule

@popoverEl.show()
@popoverEl.find('.item').show()
@popoverEl.find('.items').scrollTop(0)
@refresh()

refresh: ->
Expand Down

0 comments on commit b5e697a

Please sign in to comment.