-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 React warning in Text Control #29724
Conversation
Size Change: -5 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I verified the branch works as expected for both web and native.
I agree that renaming valuePlaceholder
to placeholder
makes sense and would potentially help avoid this issue from resurfacing in the future. I placed it on my todo list to explore.
Thank you for taking the time to create a fix for this!
Description
While reviewing another PR, I noticed this bug that was causing a React warning:
React does not recognize the
valuePlaceholderprop on a DOM element.
. This was introduced here: #27935I would suggest mobile app team to create a follow up with renaming
valuePlaceholder
toplaceholder
for native files, if it makes sense.Testing instructions
You have to open the console output in your browser.
Buttons
block and then select a singleButton
.Inspector controls
open theAdvanced
panelIn this PR repeat the above steps and observe that no error is thrown.
Checklist: