Replies: 2 comments
|
You should be able to achieve this already with some custom state management:
Im away on holidays at the moment so can't fully confirm this will work, but give it a shot and report back |
0 replies
|
Great, thanks very much - I was able to achieve the open onClick behaviour with state management like you suggested. Hope you are having/had a good holiday! |
0 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, I'm using the CameraCard component and would like to open the modal on a single click instead of the current long-press (long-click) behavior.
Current behavior:
Single click on the camera image fires the onClick callback but does NOT open the modal
Long-press/long-click opens the modal
Desired behavior:
Single click should open the modal
The onClick callback could be used to trigger modal opening
Use case:
On a dashboard/mobile interface, single-click is the expected interaction pattern for opening full-screen views. Long-press feels unnatural for this use case and users don't discover it intuitively.
Possible solutions:
Add a prop like modalTrigger: 'click' | 'longpress' to control the interaction
Add a prop like openModalOnClick={true} as a simple toggle
All reactions