Skip to content

Commit

Permalink
Merge pull request #2136 from XiaoMi/hotfix/#2135
Browse files Browse the repository at this point in the history
fix: #2135
  • Loading branch information
Flcwl committed Mar 18, 2022
2 parents f761794 + 319e913 commit 88709b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/modal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ const InternalModalComp = ({
if (defaultContainer.current === false && !container) {
defaultContainer.current = getDefaultContainer()
}

const focusedElementBeforeOpenModal = useRef(null)
const modalRef = useRef(null)
const [closeable, setCloseable] = useState(propCloseable)
useEffect(() => {
setCloseable(closeable)
setCloseable(propCloseable)
}, [propCloseable])
const trapTabKey = useCallback((e) => {
// Find all focusable children
Expand Down

0 comments on commit 88709b6

Please sign in to comment.