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

[core] fix(EditableText): add small width buffer to prevent crash #4268

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

rynorris
Copy link
Contributor

@rynorris rynorris commented Aug 7, 2020

Fixes #4267

I've tested this PR against the application where we originally noticed the crash, and confirmed it does fix the problem.

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Add a small buffer to scrollWidth in EditableText to prevent the infinite loop described in #4267
Before this PR we only added the buffer for IE and Edge. This PR makes it so we add the buffer for all browsers.

Reviewers should focus on:

Is this really the "right" fix? Or is this just a patch over a deeper issue?

@adidahiya
Copy link
Contributor

adidahiya commented Aug 7, 2020

docs preview

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

yeah, kind of a patchy fix, but seems harmless enough. I tested that it doesn't break existing behavior

@adidahiya adidahiya changed the title Add small width buffer for all browsers in EditableText [core] fix(EditableText): add small width buffer to prevent crash Aug 7, 2020
@adidahiya adidahiya merged commit ff5096a into palantir:develop Aug 7, 2020
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.

Edge case in EditableText causes infinite loop crash
2 participants