From f462ae5747144553b1fb05687614c86e1b54070a Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Fri, 15 Jun 2018 09:08:23 -0500 Subject: [PATCH] refactor(Modal): rename `buttonIsFocusable` property to `beingOpen` --- src/components/Modal/Modal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Modal/Modal.js b/src/components/Modal/Modal.js index 6cb5fa0fb6..d5edb91ab7 100644 --- a/src/components/Modal/Modal.js +++ b/src/components/Modal/Modal.js @@ -56,9 +56,9 @@ export default class Modal extends Component { componentDidUpdate(prevProps) { if (!prevProps.open && this.props.open) { - this.buttonIsFocusable = true; + this.beingOpen = true; } else if (prevProps.open && !this.props.open) { - this.buttonIsFocusable = false; + this.beingOpen = false; } } @@ -72,10 +72,10 @@ export default class Modal extends Component { if ( this.outerModal.offsetWidth && this.outerModal.offsetHeight && - this.buttonIsFocusable + this.beingOpen ) { this.focusButton(); - this.buttonIsFocusable = false; + this.beingOpen = false; } };