You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to display the bottom sheet pane when the browser is in mobile view and destroy the pane on desktop view.
I am using these break points
breaks: {
top: { enabled: true, height: 160, bounce: true },
middle: { enabled: true, height: 80, bounce: true },
bottom: { enabled: true, height: 50 },
},
Works perfectly when opening the page on mobile view(even mobile) the problem I am facing is whenever I inspect and increase the screen width(layout disappears) and then decrease the screen width I expected the height to be the same(at least similar) but my pane now is stuck to the bottom with very little breakpoints(even hard to know if they exists)
One might argue this wont happen in reality, another incident of this is when I have an input field inside the pane and open the page with mobile browser works perfectly, but after pressing the input fields(the screen gets smaller) and entering text and searching, the pane is again stuck to the bottom giving the same behavior as the previous)
I am not sure if this is a bug or not but any help is much appreaciated.
Working with
"react": "^18.2.0",
"next": "^14.0.4",
"cupertino-pane": "^1.4.21",
To Reproduce
Steps to reproduce the behavior:
Copy and Paste the following code - BottomSheetComponenet
Describe the bug
I want to display the bottom sheet pane when the browser is in mobile view and destroy the pane on desktop view.
I am using these break points
breaks: {
top: { enabled: true, height: 160, bounce: true },
middle: { enabled: true, height: 80, bounce: true },
bottom: { enabled: true, height: 50 },
},
Works perfectly when opening the page on mobile view(even mobile) the problem I am facing is whenever I inspect and increase the screen width(layout disappears) and then decrease the screen width I expected the height to be the same(at least similar) but my pane now is stuck to the bottom with very little breakpoints(even hard to know if they exists)
One might argue this wont happen in reality, another incident of this is when I have an input field inside the pane and open the page with mobile browser works perfectly, but after pressing the input fields(the screen gets smaller) and entering text and searching, the pane is again stuck to the bottom giving the same behavior as the previous)
I am not sure if this is a bug or not but any help is much appreaciated.
Working with
To Reproduce
Steps to reproduce the behavior:
Copy and Paste the following code - BottomSheetComponenet
This is how i called it
{secondaryChild}
isMObile is just a state that checks for windows size change
Expected behavior
I just want the height of the pane to remain as it was on first rendering
Screenshots
Additional context
I am not sure if this is a bug or not, but please if its not can i get a demonstration for typescript
The text was updated successfully, but these errors were encountered: