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

Fix SuperDatePicker isPaused prop update. #2250

Merged
merged 3 commits into from
Aug 23, 2019

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Aug 23, 2019

Summary

Fixes a bug where a prop change of isPaused for SuperDatePicker is not reflected in the refresh interval.

Checklist

  • Checked in dark mode doesn't touch DOM
  • Checked in mobile doesn't touch DOM
  • Checked in IE11 and Firefox doesn't touch DOM
  • Props have proper autodocs doesn't touch props
  • Added documentation examples doesn't change features
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@walterra walterra merged commit 3e765b6 into elastic:master Aug 23, 2019
@walterra walterra deleted the fix-superdatepicker-interval branch August 23, 2019 08:44
@walterra walterra self-assigned this Aug 23, 2019
walterra added a commit that referenced this pull request Sep 7, 2019
Follow up to #2250. While the approach to add componenDidUpdate() in the PR linked above was the right one, the way the interval was updated didn't work out as intended. The code didn't properly stop any previous running interval. This updated PR changes the code to call stopInterval() in any case similar to how onRefreshChange() works. I also added some more tests to run against the interval updates.
thompsongl pushed a commit to thompsongl/eui that referenced this pull request Sep 10, 2019
Fixes a bug where a prop change of isPaused for SuperDatePicker is not reflected in the refresh interval.
thompsongl pushed a commit to thompsongl/eui that referenced this pull request Sep 10, 2019
Follow up to elastic#2250. While the approach to add componenDidUpdate() in the PR linked above was the right one, the way the interval was updated didn't work out as intended. The code didn't properly stop any previous running interval. This updated PR changes the code to call stopInterval() in any case similar to how onRefreshChange() works. I also added some more tests to run against the interval updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants