-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Textfield inside Dialog in Safari - carret is hidden #16105
Comments
@koshkarik It seems to also be related to the |
Yep, i will open an issue on Safari side 👌 |
No luck to reproduce the problem with pure html and css in safari - so not enough facts to open issue on Safari side( |
@oliviertassinari I didn't figure out how to fix this problem in mui( I do understand I can simply overwrite input styles (background) and it will solve the problem for me, but in our project we have a lot of inputs in modals, so this style fix will make a lot of crutches. Do you have any idea how to solve it in mui? |
@koshkarik Copy & pasting the HTML output seems to be enough: https://codepen.io/anon/pen/agmmMR to reproduce. Maybe we can clean the codepen as much as possible to be minimal? |
I have the same bug. But I found temporary solution. |
@oliviertassinari I have finally opened an issue on Safari side with your example https://bugs.webkit.org/show_bug.cgi?id=199188 If it will be needed i will clean up the example from the rest of unnecessary things. I hope they will reply soon about this issue, but there is a big chance that fixing this bug in Safari will take a while and a lot of people will face this problem for that period of time... May be it's possible to make quick fix in material ui, what do you think of it? |
@koshkarik How? Do you know a fix that can be deployed without breaking people code?
Thank you! |
@oliviertassinari actually didn't figure this out yet :( |
I hope that the Safari team will be able to help. Given they have acces to advanced debugging tools, they might be able to explain what's going on and how to fix it. |
@oliviertassinari how do you think, is it possible do add |
Hum. Adding a z-index would move the component into its own stacking context so it might break people visual layout. If we try it, it's also possible that we will have to revert it (based on people bug reports). cc @mui-org/core-contributors |
Hello! Any updates on this issue? |
What's new? |
I see this issue (cursor is missing when value is '', but appears when value != '') in Safari 12.1 on Mojave, but I noticed two things:
|
@hemanursawarrior the issue is there(on Safari only) if you open the dialog with a form on the /components/dialogs page. I created an issue for this as in dialogs navigating with Tab also does not work ( #17403 ) |
I have a similar problem on Safari 14 and it is happening for me in fullscreen dialog only. In fullsceen dialog the caret is cut off for |
I think this is outdated, I cannot reproduce this in the latest Safari. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @koshkarik How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
If Textfield is inside of Dialog and initial value is set to '' - there will be no cursor in Safari
Expected Behavior 🤔
Cursor must be visible in Safari like in other browser
Steps to Reproduce 🕹
Add Textfield with initial value '' in Dialog and open it in Safari
https://codesandbox.io/s/material-demo-exxfo
There will be
background: none
css in input, if you will uncheck it - everything will work as expected in SafariThe text was updated successfully, but these errors were encountered: