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

Commit 1698338

Browse files
Narretzjileeon
authored andcommitted
fixup! improve comment
1 parent febf4a7 commit 1698338

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/directive/input.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,11 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
12481248
composing = true;
12491249
});
12501250

1251+
// Support: IE9+
12511252
element.on('compositionupdate', function(ev) {
1252-
// To end composition when ev.data is empty string on 'compositionupdate' event.
1253-
// When the input has blurred, IE only triggers 'compositionupdate' event instead of 'compositionend'.
1253+
// End composition when ev.data is empty string on 'compositionupdate' event.
1254+
// When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate'
1255+
// instead of 'compositionend'.
12541256
if (ev.data === '') composing = false;
12551257
});
12561258

0 commit comments

Comments
 (0)