diff --git a/src/Modal.js b/src/Modal.js index 62aacbb57..01f5e9020 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -214,6 +214,7 @@ class Modal extends React.Component { const focusableChildren = this.getFocusableChildren(); const totalFocusable = focusableChildren.length; + if (totalFocusable === 0) return; const currentFocus = this.getFocusedChild(); let focusedIndex = 0;