user-select: none causing inputs within TableHeader to not work #7682
-
I'm implementing a wysiwyg table using the Table, TableHeader, Cell, Column etc from react-aria-components. One of the issues I have is that while I got cells to be editable (albeit with a bunch of focus issues), my within the header elements don't focus when clicking into it. I traced it to the I know usePress allows Any thoughts how best to handle this, or if I'm missing a prop or smth. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't think using the actual components for the wysiwyg is a great idea. Usually wysiwygs have an action when you click on an element, or you need to add other controls into/around the element that aren't compatible with the roles of the target, or you need to drag elements around that otherwise can't be dragged. I think you're fighting the way that a table should work vs how a wysiwyg works. I get that it's convenient to use the actual components, but I think they are just too different. That said, we have work going on right now to support textfields and other editable things in tables. It should be coming soon. |
Beta Was this translation helpful? Give feedback.
I don't think using the actual components for the wysiwyg is a great idea. Usually wysiwygs have an action when you click on an element, or you need to add other controls into/around the element that aren't compatible with the roles of the target, or you need to drag elements around that otherwise can't be dragged.
I think you're fighting the way that a table should work vs how a wysiwyg works. I get that it's convenient to use the actual components, but I think they are just too different.
That said, we have work going on right now to support textfields and other editable things in tables. It should be coming soon.