I have an input web component utilizing ShadowDOM, that internally has a simple structure:
<custom-input id="foobar">
::shadow
<div id="input-root" class="label-north">
<label for="input">Labeltext</label>
<input id="input" type="text" />
</div>
::endshadow
</custom-input>
Whenever the native change event occurs, I am replacing this native change event with a custom state-changed event that reports the component state in the event.detail payload. This event has composed: true and bubbles: true.
How do I get this custom event object to show up in the actions section in Storybook?
I have tried like this:
parameters: {
actions: {
handles: ['state-changed'],
},
},
But nothing shows up in actions when I change the value of the input.