tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
675 stars 149 forks source link

Add default class name #185

Closed joeyparis closed 3 years ago

joeyparis commented 3 years ago

If a className is not provided on the SelectSearch component an error is thrown by the useClassName hook. This pull request allows the className prop to be left out and will default to select-search to match style.css. I also update the ReadMe to reflect this value.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tbleckert/react-select-search/61wG1fFyBm8JyH1EtyqP57p6Wbby
✅ Preview: https://react-select-s-git-fork-joeyparis-add-default-class-name-dad419.vercel.app

joeyparis commented 3 years ago

Nevermind, apparently this was a bug with defaultProps being broken by the why-did-you-render package.