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): Update dimensions on placeholder change #6718

Merged

Conversation

PetrusAsikainen
Copy link
Contributor

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Makes sure EditableText updates its dimensions when placeholder is modified.

This sandbox highlights the issue. Change the placeholder (via the top input) to something that doesn't match the input's current width, then focus either of the EditableTexts below to see the difference.

Reviewers should focus on:

If I missed something?

The current tests don't include any for the resizing, so I don't think it's in scope for such a small PR to add those.

Screenshot

image
image

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.

nice, straightforward fix, thanks @PetrusAsikainen

@adidahiya adidahiya merged commit 0d622cd into palantir:develop Feb 21, 2024
12 checks passed
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.

2 participants