Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Passing event.target causes Storybook to hang #27

Open
TheSisb opened this issue Jan 19, 2017 · 1 comment
Open

Passing event.target causes Storybook to hang #27

TheSisb opened this issue Jan 19, 2017 · 1 comment

Comments

@TheSisb
Copy link

TheSisb commented Jan 19, 2017

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.
};
@timoxley
Copy link

timoxley commented Mar 20, 2017

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:

image

As a quick workaround I suggest the serializer should specifically ignore dom elements.

Why does it need to stringify at all?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants