Skip to content
New issue

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

fix(dropdown.tsx): handling the Placeholder if the label isnt provided #1263

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dhavalveera
Copy link
Contributor

currently the Dropdown - the label has to be passed, if the there is no label, then showing default placeholder

fix #1260

currently the Dropdown - the label has to be passed, if the there is no label, then showing default
placeholder

fix themesberg#1260
Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 7:36am

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7461173) 99.54% compared to head (24bdea2) 97.35%.
Report is 195 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1263      +/-   ##
==========================================
- Coverage   99.54%   97.35%   -2.20%     
==========================================
  Files         163      216      +53     
  Lines        6621     9224    +2603     
  Branches      401      538     +137     
==========================================
+ Hits         6591     8980    +2389     
- Misses         30      244     +214     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dhavalveera
Copy link
Contributor Author

Hello @SutuSebastian , Sorry to bother you, can you please review this PR?

Copy link
Collaborator

@SutuSebastian SutuSebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a new optional prop called placeholder then render {label ?? placeholder} but for this we have to make label optional, not sure if this is intended.

CC @rluders @tulup-conner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for placeholder in Dropdown
2 participants