mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: avoid locking body scroll in active search modal
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { useLockBodyScroll } from '@docusaurus/theme-common/internal'
|
||||
import clsx from 'clsx'
|
||||
import React from 'react'
|
||||
import { useKeyPressEvent } from 'react-use'
|
||||
@@ -26,7 +25,6 @@ export const Modal: React.FC<ModalProps> = ({
|
||||
onClose && onClose()
|
||||
}
|
||||
|
||||
useLockBodyScroll(open)
|
||||
useKeyPressEvent(
|
||||
(key) => key.code === 'Escape',
|
||||
(event) => {
|
||||
|
||||
Reference in New Issue
Block a user