When textinput is autofilled upon loading a page, the textinput label is still in the placeholder place until clicking on the textinput
See original GitHub issueCurrent behaviour
When textinput is autofilled upon loading a page, the textinput label is still in the placeholder place until clicking on the textinput
Expected behaviour
The label should be in the right spot upon getting autofilled
Code sample
<TextInput mode="outlined" label={"Email address"} />
Screenshots (if applicable)
What have you tried
Your Environment
software | version |
---|---|
ios or android | - |
react-native | 0.64.2 |
react-native-paper | 4.9.1 |
node | v15.5.1 |
npm or yarn | 1.22.10 |
react-native-web | 0.16.3 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
When textinput is autofilled upon loading a page, the textinput label ...
When textinput is autofilled upon loading a page, the textinput label is still in the placeholder place until clicking on the textinput #205....
Read more >Developers - When textinput is autofilled upon loading a page, the ...
When textinput is autofilled upon loading a page, the textinput label is still in the placeholder place until clicking on the textinput.
Read more >:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text.
Read more >TextInput - React Native
A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, such as auto- ...
Read more >React Material UI Label Overlaps with Text - Stack Overflow
However, at the page load, labels do not move up. I tried using the value attribute of the input fields together with the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shujathkhan Take a look at this #2850. I fixed it for
flat
mode butoutlined
is a bit tricky and I couldn’t find a way to fix it.Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.