You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event type of the Dialog component is "click". In the DOM a button is added for <Dialog.Trigger>, however, I can't find any event triggers on that button with the dev tools. Anyway, I'd like to change the event type to "dblclick" and I'd like to ignore just one click. My use case is opening a dialog on an element that is not a button in my ui. I have a div inside <Dialog.Trigger> for that. Even more control, like not just changing the event type, but also checking for buttons pressed during the event, would be nice. Maybe there's already a way to do al this, but I haven't found...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The event type of the Dialog component is "click". In the DOM a button is added for <Dialog.Trigger>, however, I can't find any event triggers on that button with the dev tools. Anyway, I'd like to change the event type to "dblclick" and I'd like to ignore just one click. My use case is opening a dialog on an element that is not a button in my ui. I have a div inside <Dialog.Trigger> for that. Even more control, like not just changing the event type, but also checking for buttons pressed during the event, would be nice. Maybe there's already a way to do al this, but I haven't found...
Beta Was this translation helpful? Give feedback.
All reactions