We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using Next.js and Redux as a state manager.
My bottom sheet component `import Sheet from 'react-modal-sheet' import { useAppDispatch, useAppSelector } from '@/store/hooks'
import { MenuButtons, changeActive } from '@/store/reducers/menu' import { SheetDetent } from 'react-modal-sheet/dist/types'
export default function BottomSheet({ value, content, detent }: { value: MenuButtons; content: React.ReactNode; detent: SheetDetent }) { const dispatch = useAppDispatch() const { active } = useAppSelector((store) => store.menu)
return ( <> <Sheet isOpen={active == value} onClose={() => dispatch(changeActive('home'))} detent={detent} className="max-w-screen-sm mx-auto md:hidden"> <Sheet.Container> <Sheet.Header> <div className="w-full pb-10 flex justify-center"> <div className="w-[100px] h-[5px] rounded bg-[rgba(255,255,255,0.40)]"></div> </div> </Sheet.Header> <Sheet.Scroller className="rounded"> <Sheet.Content>{content}</Sheet.Content> </Sheet.Scroller> </Sheet.Container> <Sheet.Backdrop /> </Sheet> </> )
}`
menu state is updating(100%) and component works well on desktop browsers simmulation, but not on real mobile browsers.
Adaptive design mode on FireFox desktop:
Chrome mobile: https://github.com/Temzasse/react-modal-sheet/assets/142510011/3005c547-3ca6-49f8-9920-14efb062785e
sorry for bad description of issue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using Next.js and Redux as a state manager.
My bottom sheet component
`import Sheet from 'react-modal-sheet'
import { useAppDispatch, useAppSelector } from '@/store/hooks'
import { MenuButtons, changeActive } from '@/store/reducers/menu'
import { SheetDetent } from 'react-modal-sheet/dist/types'
export default function BottomSheet({ value, content, detent }: { value: MenuButtons; content: React.ReactNode; detent: SheetDetent }) {
const dispatch = useAppDispatch()
const { active } = useAppSelector((store) => store.menu)
}`
menu state is updating(100%) and component works well on desktop browsers simmulation, but not on real mobile browsers.
Adaptive design mode on FireFox desktop:
2023-10-22.11.29.49.mov
Chrome mobile:
https://github.com/Temzasse/react-modal-sheet/assets/142510011/3005c547-3ca6-49f8-9920-14efb062785e
sorry for bad description of issue
The text was updated successfully, but these errors were encountered: