Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
791 stars 75 forks source link

How to disable close modal-sheet #51

Closed giangjcr closed 2 years ago

giangjcr commented 2 years ago

Hello friends how to make my modal-sheet always be displayed on screen as 100px drag max 500px and can't close modal-sheet when height is 100px

Guiw5 commented 2 years ago

try this props over the modalSheet

isOpen={true}
onClose={()=>{}}
jaymdq commented 2 years ago

Same problem here. If you do the following, you still can close the sheet if you drag fast. isOpen={true} onClose={()=>{}}

guilnorth commented 2 years ago

Same problem here. If you do the following, you still can close the sheet if you drag fast. isOpen={true} onClose={()=>{}}

Try this workaround https://github.com/Temzasse/react-modal-sheet/issues/6#issuecomment-967702561

Temzasse commented 2 years ago

Duplicate of #6