-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] DatePicker Popper is losing ref position (x,y) after setting a value (keyboard) #9315
Comments
Could you please provide a minimal reproduction case to showcase the problem you are having? |
Whenever you try to make the popper visible while typing in the input field, i think that the component doesn't support that use case. am i missing something? this is a very common Date picking use case . |
What you are describing is not supported by our pickers out of the box. Although I've tried hacking around and based on your description, it seems that this demo does cover the use case you are describing. 🤔 |
Thanks, your code example helped me to figure it out! i used both textField and field (i needed field in order to manipulate sections) textField: { |
is it possible or even right to use them both? just add -> field: { to you code example and it is not working anymore |
I will kindly ask you to provide a codesandbox example, where something is not working. In regards to the problem shown in the video, consider checking #9285 as it also showcased a similar problem and the root cause was an issue of forgetting to forward original |
thanks, i think i am ok now. |
Closing the issue as there does not seem to be any more open questions left to answer. |
Order ID or Support key 💳 (optional)
3453
Duplicates
Latest version
The problem in depth 🔍
I am trying to use the new version 6.7 of x-date-picker-pro and i am having an issue with
the popper that losing its relative position after setting a value.
my case ->
i am manipulating the component to be able to use both popper and input at the same time (i saw that is not the native behavior) by calling inputRef.current.focus() inside onOpen event.
This is my current implementation when i am using v5 and TextInput ->
Screen.Recording.2023-06-13.at.12.53.06.mov
This is my the new v6 with DateField (The issue) ->
Screen.Recording.2023-06-13.at.12.52.38.mov
is there any way to work with the DateField and keep the popper opened ?
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: