Replies: 1 comment 3 replies
-
Thanks for the discussion. I suggest starting with this series https://react-spectrum.adobe.com/blog/building-a-button-part-1.html to see why we're "cloaking away" the browser events. I'm not quite sure I followed the video + explanation, I'm not sure what composition mode is in the video. And I don't know why the events are needed for it. That said, the short answer is that we don't allow to turn them off as then the components would not be accessible and probably wouldn't work at all in many cases. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am working on a low code implementation/integration for the Spectrum library on the Solvent platform as shown here:
https://www.youtube.com/watch?v=nuA_QVVCFy8
The implementation requires the ability to essentially hijack browser html element events during active composition then relinquish once user turns off composition mode.
It appears the Spectrum library cloaks away the browser events for components and instead provides hooks (useDrag...etc) and props (onPress..etc) to expose some of these events.
Is there a simple trick to circumvent this limitation and just allow access to all events? Is there some flag that would for instance allow me to just bind to the drag,drop,mouseover..etc events like any plain html element should be able to?
I understand the architecture is meant to support accessibility, I am hoping there is the options to turn those accessibility requirements off and allow the components to respond to browser mouse/pointer events in the standard and expected manner.
Beta Was this translation helpful? Give feedback.
All reactions