themesberg / themesberg/flowbite-react
Datepicker Pops beyond edge of screen
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
Place a datepicker on the edge of your screen, mine is 6 padding in from the right
Open the datepicker, the popover goes beyond the browser causing an X scroll
Try and scroll X by clicking the bar and the date picker disappears
Current behavior
Popovers are breaking outside of the screen.
Expected behavior
Popover should always position inside the screen.
Context
Using the Flowbite Admin Dashboard example with Flowbite React Components
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 by reproducing the issue with a datepicker in the Flowbite Admin Dashboard example, positioned near the right edge of the browser. Trace the datepicker popover positioning behavior and verify that the fix keeps the popover inside the viewport without horizontal scrolling or disappearing when the page is scrolled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, tailwindcss, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100