themesberg / themesberg/flowbite

Body scrolls when drawer is open (iOS Safari)

Open
#464 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Simply copy component from docs: https://flowbite.com/docs/components/drawer/#disabled-default
  2. Add some scrollable content to the body
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.