mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
Merge pull request #3994 from tgxworld/fix_autocomplete
FIX: Don't update autocomplete when removing the key.
This commit is contained in:
commit
54b0de8472
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…
Add table
Reference in a new issue