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

Fix #161 by using PureComponent #162

Closed
wants to merge 1 commit into from
Closed

Conversation

embiem
Copy link

@embiem embiem commented Apr 18, 2019

This will remove the shouldComponentUpdate function and use PureComponent to still have a simple props check before updating the component.

Solves the issue described in #161

@lovasoa
Copy link
Owner

lovasoa commented Apr 19, 2019

If I'm not mistaken, this will update the component on every single keystroke, which is not something we want. Every time we update the component, the caret jumps to the end of the editable element.

@lovasoa lovasoa closed this Apr 19, 2019
@lovasoa lovasoa reopened this Apr 19, 2019
Copy link

@YIZHUANG YIZHUANG left a comment

Choose a reason for hiding this comment

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

This PR would break the caret.

@lovasoa lovasoa closed this Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants