Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen authored Oct 22, 2021
1 parent cf09032 commit df41048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const App = () => {
const [showChildModal, setShowChildModal] = useState(false);
const { Portal: ChildModal, show } = usePortal({ defaultShow: false });
const { Portal: ParentModal } = usePortal({
// Provide the class name of the child modal, so the parent modal will only be hidden when the child modal is hidden
// Provide the class name of the child modal, so the parent modal will only be hidden after the child modal is hidden
escToHide: ["child-modal"],
// The same as `escToHide`
clickOutsideToHide: ["child-modal"],
Expand Down

0 comments on commit df41048

Please sign in to comment.