-
I have a custom component that works as expected when wrapped into
Internally, I learned that Next, after watching how native inputs behave with const event = new CustomEvent('change', { bubbles: true, cancelable: true, detail: { value });
onChange(event) Is there a way to dispatch a manually-created event on → Codesandbox exploration (updated with working solution) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
Succeded in "tricking it" to accept an object value.
Their
onChange
handler, which we forced to branching intogetEventValue
:Which is defined as:
We forced it to evaluate
event.target.value