Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit eb176b2

Browse files
committed
Fix #272
- IE10/11 clears input field when key down event from ESC is triggered. To solve that, I inserted event.preventDefault(). Hopefully, this won't break any other features.
1 parent 4e138b4 commit eb176b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

angucomplete-alt.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@
421421
handleOverrideSuggestions();
422422
}
423423
}
424+
} else if (which === KEY_ES) {
425+
// This is very specific to IE10/11 #272
426+
// without this, IE clears the input text
427+
event.preventDefault();
424428
}
425429
}
426430

0 commit comments

Comments
 (0)