Skip to content

fix regression for keyboard layouts that overwrite character before cursor - #3411

Merged
iAmWillShepherd merged 3 commits into
masterfrom
keyboard-gotta-keyboard
Jan 8, 2018
Merged

iAmWillShepherd merged 3 commits into
masterfrom
keyboard-gotta-keyboard

Conversation

@shiftkey

@shiftkey shiftkey commented Nov 24, 2017 •

Copy link
Copy Markdown
Member

Fixes #3354 by being more careful with setState inside text-box rather than managing things ourselves:

@shiftkey

Copy link
Copy Markdown
Member Author

Here it is in action:

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 20, 2017
const defaultPrevented = event.defaultPrevented

this.setState({ value }, () => {
if (this.props.onValueChanged && !defaultPrevented) {

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd iAmWillShepherd self-assigned this Jan 8, 2018
@iAmWillShepherd
iAmWillShepherd merged commit b0d5afb into master Jan 8, 2018
@iAmWillShepherd
iAmWillShepherd deleted the keyboard-gotta-keyboard branch January 8, 2018 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants