-
We build a lowcode platform as shown here: We've just integrated Cloudscape but have run into the issue of native browser events not being exposed directly via props. Basically we need access to the mouseenter,mouseover,mousedown,drag,drop events. I looked at some of the typescript code and see that the components seem to be limited to being bound to only select events (onClick for instance on button). Native browser events are really not to be messed with as there are so many use-cases that rely on them, unfortunately nuking access to them seem to be a trend in react component libraries, we ran into similar issues with Adobe's Spectrum library. Is there some trick we could employ to get access to these events? If no easy trick, can someone answer whether ref/ref forwarding is something we could use? I see some ref forwarding in the code but I am not sure it is applied consistently. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, Could you please describe a specific use case that requires having more events exposed on a particular component? In most cases it should be enough to attach these events on a wrapper component instead. Some components do expose refs but the API is usually limited to the |
Beta Was this translation helpful? Give feedback.
Hello,
Could you please describe a specific use case that requires having more events exposed on a particular component? In most cases it should be enough to attach these events on a wrapper component instead.
Some components do expose refs but the API is usually limited to the
.focus()
call and sometimes a few more methods but none of the components give direct access to the underlying DOM nodes.