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: force EditableText to respect disabled when alwaysRenderInput is true #4365

Conversation

cemreyavuz
Copy link
Contributor

Fixes #4329

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

As mentioned in #4329, EditableText component doesn't respect to disabled prop when alwaysRenderInput is set to true. Normally, disabled prop is not passed to the input element. Instead a span element is displayed when disabled prop is true. However, alwaysRenderInput prop forces component to render input element no matter what. So, I pass disabled prop of EditableText to input element to disabled the input element while rendering it all the time because of alwaysRenderInput.

@adidahiya adidahiya merged commit 56e5606 into palantir:develop Oct 15, 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.

[EditableText] Disabled prop ignored when alwaysRenderInput set to true
2 participants