mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Don't update autocomplete when removing the key.
This commit is contained in:
parent
0ef141b2c3
commit
726d81f83b
1 changed files with 4 additions and 0 deletions
|
@ -430,6 +430,10 @@ export default function(options) {
|
|||
|
||||
term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition);
|
||||
|
||||
if ((completeStart === caretPosition) && (term === options.key)) {
|
||||
closeAutocomplete();
|
||||
}
|
||||
|
||||
updateAutoComplete(options.dataSource(term));
|
||||
return true;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue