Access the event object in the onClick method of the NumberInput component (or any other event triggering methods) #7301
-
Hello guys. Could you please help me to solve this issue. I am trying to stop propagation on input value change. So instead of getting an event, I am getting the exact value (event.currentTarget.value) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I do not see such behavior for onClick event, it is called with the event object. |
Beta Was this translation helpful? Give feedback.
-
If it is inside an accordion, it's causing accordion to open when user focus on NumberInput, or clicking controls of NumberInput |
Beta Was this translation helpful? Give feedback.
Using code like in your example is an accessibility violation, Mantine does not support use cases that violate accessibility rules. See https://mantine.dev/core/accordion/#compose-controls.