Replies: 2 comments 3 replies
-
Accessibility in rich text editors is a whole different beast really. |
Beta Was this translation helpful? Give feedback.
-
Like I said, I think rich text accessibility is an entirely different can of worms so I don't think our components are well suited to that use case at the moment. I'm also not sure I'm following your code examples above sorry… |
Beta Was this translation helpful? Give feedback.
-
Rich text usually has its own focus management, and when used with radix-ui, it is found that it will conflict with the focus of rich text.
This generally happens in toolbars, and I want the rich text editor to not lose focus when the toolbar is clicked
For normal button nodes, it can be prevented by adding preventDefault, but there is no simple processing method in the radix-ui Menu component
For example these codes in the menu
https://github.com/radix-ui/primitives/blob/main/packages/react/menu/src/Menu.tsx#L465
https://github.com/radix-ui/primitives/blob/main/packages/react/menu/src/Menu.tsx#L441
https://github.com/radix-ui/primitives/blob/main/packages/react/menu/src/Menu.tsx#L1057
Is this expected behavior? If not, is there a way to handle such behavior? Or provide unified management focus behavior configuration, maybe I can get it done
Beta Was this translation helpful? Give feedback.
All reactions