storybook-addon-actions
storybook-addon-actions copied to clipboard
Passing event.target causes Storybook to hang
I have a story that passes onFocus={action('Focused')}
The component is an input element with onFocus={this.onFocus}
onFocus = e => {
this.props.onFocus && this.props.onFocus(e.target); // App hangs. 'e' alone is fine.
};
Can reproduce. I'm getting incredibly slow responses from action
. Click handler takes about a second, and seems to be stuck stringifying an html element:
As a quick workaround I suggest the serializer should specifically ignore dom elements.
Why does it need to stringify at all?