sanusart / react-dropdown-select

Customisable dropdown select for react
https://react-dropdown-select.netlify.app/
MIT License
349 stars 83 forks source link

How can I style the default clear button and make it a bit larger? #309

Open Fa1z-khan opened 6 months ago

sanusart commented 6 months ago

https://sanusart.github.io/react-dropdown-select/prop/clear-renderer/

On Thu, 15 Feb 2024 at 3:16 PM Faiz Khan @.***> wrote:

— Reply to this email directly, view it on GitHub https://github.com/sanusart/react-dropdown-select/issues/309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACBLRWV5GDAHJW2SFI34ULYTYDBVAVCNFSM6AAAAABDKHXPMSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTMNBZGMYDIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Fa1z-khan commented 6 months ago

yep i got to that part but cant figure out why it doesnt clear while clicking on the custom icon

sanusart commented 6 months ago

Its a building blocks when custom renderers used so you need to call clearAll from provided methods. Like here https://codesandbox.io/p/sandbox/react-dropdown-select-forked-xv97wc?file=%2Fsrc%2Findex.js%3A20%2C49