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

fix(input): setViewValue on compositionend #5433

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Dec 16, 2013

Because of a4e6d96, model is not updated on input/change between the compositionstart and compositionend events. Unfortunately, the compositionend event does not always happen prior to an input/change event.

This changeset calls the listener function to update the model after a compositionend event is received.

This seems to also be an issue on IE10 with certain IMEs


http://plnkr.co/edit/euPnjrLk918G31aTDPjN?p=preview test-case which gives me adequate results on Nexus S

Fixes #5308, #5323

@tbosch
Copy link
Contributor

tbosch commented Dec 18, 2013

This is obsolete now, right?

@caitp
Copy link
Contributor Author

caitp commented Dec 18, 2013

Yeah, I guess close it for now and it can be re-opened if there's another issue related that it solves

@caitp
Copy link
Contributor Author

caitp commented Jan 31, 2014

Might work to fix #6058, reopening

@caitp caitp reopened this Jan 31, 2014
Because of a4e6d96, model is not updated on input/change between the
compositionstart and compositionend events. Unfortunately, the compositionend
event does not always happen prior to an input/change event.

This changeset calls the listener function to update the model after a
compositionend event is received.
@clkao
Copy link
Contributor

clkao commented Feb 1, 2014

LGTM

1 similar comment
@tbosch
Copy link
Contributor

tbosch commented Feb 12, 2014

LGTM

@caitp caitp closed this in 2b73027 Feb 13, 2014
khepin pushed a commit to khepin/angular.js that referenced this pull request Feb 19, 2014
Because of a4e6d96, model is not updated on input/change between the
compositionstart and compositionend events. Unfortunately, the compositionend
event does not always happen prior to an input/change event.

This changeset calls the listener function to update the model after a
compositionend event is received.

Closes angular#6058
Closes angular#5433
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-model is not updated immediately in Chrome WebView or Browser
3 participants