diff --git a/components/modal.js b/components/modal.js index f01ca8a1c..f5039ebc7 100644 --- a/components/modal.js +++ b/components/modal.js @@ -109,6 +109,7 @@ export default function useModal () { const showModal = useCallback( (getContent, options) => { + document.activeElement?.blur() const ref = { node: getContent(onClose, setOptions), options } if (options?.replaceModal) { modalStack.current = [ref]