Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only perform blur when text input has focus #451

Merged
merged 1 commit into from
Jun 1, 2016

Conversation

OAGr
Copy link
Member

@OAGr OAGr commented Jun 1, 2016

No description provided.

componentWillUnmount() {
const selection = this.state.editorState.getSelection()
if (selection && selection.getHasFocus()){
this.props.onBlur()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you take away passing the value up here? If I'm not mistaken, this will mean that on unmount the guesstimate won't ever save. This doesn't seem right to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I hadn't seen the modification you made in TextForm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants