themesberg / themesberg/flowbite

Extra Large modal no show scroll on top when open second time

Open
#1,081 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
Extra Large modal no show scroll on top when open second time.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://flowbite.com/docs/components/modal/#sizes'
  2. Click on 'Toggle mobile view'
  3. Click on 'Extra large modal'
  4. Scroll down to the end of modal.
  5. Click on any buttom (i accept or decline)
  6. Click on 'Extra large modal' once again.
  7. See the scroll of modal keep down.
  8. The ideal way is that start in the top, but no start in the end.

Any suggestion? for control the scroll when reopen the modal.

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 Extra large modal example at https://flowbite.com/docs/components/modal/#sizes and reproduce the behavior using the listed steps, including reopening it after scrolling and choosing a button. Trace the modal's open and close behavior; done means reopening starts the modal scroll position at the top.

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.