themesberg / themesberg/flowbite
Body scrolls when drawer is open (iOS Safari)
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When the drawer component is open body scrolling still works on iOS on Safari. Adding data-drawer-body-scrolling="false" does nothing.
To Reproduce
Steps to reproduce the behavior:
- Simply copy component from docs: https://flowbite.com/docs/components/drawer/#disabled-default
- Add some scrollable content to the body
- Open drawer
Expected behavior
Body should not be scrollable when drawer is open as far as the default settings weren't changed.
Smartphone:
- Device: iPhone 13 Pro Max & iPhone 12 Pro
- OS: 16.0
- Browser: Safari
Additional context
It works on iOS Chrome very well and also on macOS Ventura's Safari. So the problem occurs only on mobile Safari.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the drawer component demonstrated in the linked documentation example and reproduce it on mobile Safari with scrollable body content. Check how data-drawer-body-scrolling="false" is handled when the drawer opens. Done means the body cannot scroll while the drawer is open with default settings, while the behavior remains correct on the reported browsers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, tailwindcss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100