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

Commit 1f0688e

Browse files
committed
fixup! fix(input[text]): composing function dosen't works properly in IE
1 parent 4a5283b commit 1f0688e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/directive/input.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,9 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
12531253
// End composition when ev.data is empty string on 'compositionupdate' event.
12541254
// When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate'
12551255
// instead of 'compositionend'.
1256-
if (ev.data === '') composing = false;
1256+
if (isUndefined(ev.data) || ev.data === '') {
1257+
composing = false;
1258+
}
12571259
});
12581260

12591261
element.on('compositionend', function() {

0 commit comments

Comments
 (0)