Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fixup! fix(input[text]): composing function dosen't works properly in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Narretz committed Jan 29, 2018
1 parent 4a5283b commit 1f0688e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,9 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
// End composition when ev.data is empty string on 'compositionupdate' event.
// When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate'
// instead of 'compositionend'.
if (ev.data === '') composing = false;
if (isUndefined(ev.data) || ev.data === '') {
composing = false;
}
});

element.on('compositionend', function() {
Expand Down

0 comments on commit 1f0688e

Please sign in to comment.