Skip to content

v2.1.0

Compare
Choose a tag to compare
@hiro08gh hiro08gh released this 08 Sep 09:18
· 84 commits to master since this release

add option that don't close on overlay click. #24
Fix: webpack resolve extensions tsx -> .tsx #29

Change

Add closeOnOverlayClick options.

const [Modal, open, close, isOpen] = useModal('root', {
  preventScroll: true,
  closeOnOverlayClick: false
});

Special thunks. @Shinyaigeek and @kuroppe1819