Basic tests for PollCreateDialog (#7193)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Andy Balaam 2021-11-24 13:48:07 +00:00 committed by GitHub
parent 392c4ad8d9
commit d7f3d2791a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2459 additions and 1 deletions

View file

@ -89,7 +89,7 @@ export default class PollCreateDialog extends ScrollableBaseModal<IProps, IState
this.setState({ options: newOptions }, () => {
// Scroll the button into view after the state update to ensure we don't experience
// a pop-in effect, and to avoid the button getting cut off due to a mid-scroll render.
this.addOptionRef.current?.scrollIntoView();
this.addOptionRef.current?.scrollIntoView?.();
});
};