Replies: 2 comments 1 reply
-
@riddleit did you ever figure this out, im having a similar issue |
Beta Was this translation helpful? Give feedback.
-
I made a quick reproduction for this issue cuz I just encountered it: This one seems hopefully dissimilar to the various issues about react-select, because no node is being removed. Just the innerText of the
(typically using I saw one issue talk about this block of source code and I wonder if this line specifically is causing the issue since the content of the error message container might be considered "children"? @chaance any ideas for workarounds? I don't really see one besides killing focus trap in the dialog which I'm uninterested in doing. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm having an issue while using a form (react-hook-form) inside a Dialog. I'm opening the discussion here because I do not get this error if I don't use the Dialog primitives and use something else.
To showcase the issue here is a simple example:
When navigating via keyboard tab key the focus cycles correctly through the form elements.
After we have both fields with error, when we fill in some characters in one field (to make it valid) and tab (or mouse click to the other field), the focus does not go to the next element but goes to the dialog instead.
Here is an animation with the explained behaviour followed by a code example:
https://github.com/radix-ui/primitives/assets/49200000/1012d684-d0a5-405d-afe0-16aa07dee3b0
TestDialogWithForm:
TestForm:
Versions used:
Any ideias on what might be missing?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions