Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen for window events #718

Closed
ladas-larry opened this issue Mar 9, 2017 · 1 comment · Fixed by Watemlifts/storybook#286 · 4 remaining pull requests
Closed

Listen for window events #718

ladas-larry opened this issue Mar 9, 2017 · 1 comment · Fixed by Watemlifts/storybook#286 · 4 remaining pull requests

Comments

@ladas-larry
Copy link

We have a components with such listeners:

private componentDidMount = () => {
    window.addEventListener('resize', this.updateDimensions)
  }

But that doesn't work in storybook, components don't reacting when resize event is triggered.

@mastermsd
Copy link

@ladas-larry Have you found a work-around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment