question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this.bottomSheetRef.current.snapTo(1)

This always works at second click. If there is 3 snapPoints its always goes to heighest one at first and at second click it goes where I want.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:11

github_iconTop GitHub Comments

2reactions
aliemircommented, Apr 5, 2020

I have ran into this problem today. I found a very annoying workaround, calling the snapTo twice.

like this,

const closeModal = () => {
  bottomSheet_ref.current.snapTo(1)
  bottomSheet_ref.current.snapTo(1)
}
2reactions
adilanchiancommented, Apr 2, 2020

I plan on cloning the repo down this weekend and try to debug what’s going on. @Deepp0925 or @Sargnec let me know if you have some time to do the same and post any findings here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Close Bootstrap Modal - jquery - Stack Overflow
The modal is displayed initially, but it does not close when clicked outside of the modal. Also, the content area is not greyed...
Read more >
How to close modal in Bootstrap - code helpers
There are few ways to close modal in Bootstrap: click on a backdrop, close icon, or close button. You can also use JavaScript...
Read more >
Modal - Bootstrap
Modals are built with HTML, CSS, and JavaScript. · Clicking on the modal “backdrop” will automatically close the modal. · Bootstrap only supports...
Read more >
Closing the Modal - Regular Labs
By default the modal will have a close button in the top right. Clicking that will close the modal. Also, you can close...
Read more >
How to Close a Bootstrap Modal Window Using jQuery
You can simply use the modal('hide') method to hide or close the modal window in Bootstrap using jQuery. Other related Bootstrap's modal methods...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found