We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 206cfe6 commit 4a120a9Copy full SHA for 4a120a9
src/components/ModalPortal.js
@@ -233,7 +233,9 @@ export default class ModalPortal extends Component {
233
234
// Don't steal focus from inner elements
235
focusContent = () =>
236
- this.content && !this.contentHasFocus() && this.content.focus({ preventScroll: true });
+ this.content &&
237
+ !this.contentHasFocus() &&
238
+ this.content.focus({ preventScroll: true });
239
240
closeWithTimeout = () => {
241
const closesAt = Date.now() + this.props.closeTimeoutMS;
0 commit comments