onesine / react-tailwindcss-select

Tailwind Select Component for React.js
https://demo-react-tailwindcss-select.vercel.app/
MIT License
182 stars 37 forks source link

Multiple Select is not working #28

Open sc0rp10n-py opened 1 year ago

sc0rp10n-py commented 1 year ago

This is what I see when I do isMultiple={true} image

placeholder gets hidden, and stops working then when i click on it to select, then nothing works

I am also not even getting any errors

onesine commented 1 year ago

Hi @sc0rp10n-py 👋

Thanks for using this package and thanks for your feadback.

Can you give us more information to help us identify the problem.

sc0rp10n-py commented 1 year ago

@onesine i did this in my code

<Select
    id="faculty"
    name="faculty"
    required
    value={faculty}
    onChange={handleChange}
    isSearchable={true}
    isClearable={true}
    // isMultiple={true}
    // classNames={{
    //     menu: "bg-black rounded text-white w-full",
    //     list: "bg-black rounded py-2 px-4 text-white w-full",
    //     option: "bg-black rounded py-2 px-4 text-white w-full",
    //     tagItem: "bg-black rounded py-2 px-4 text-white w-full",
    // }}
    placeholder="Select the faculty name"
    options={facultyList}
/>

i was not able to change the bg to black either

and when i set isMultiple={true} then the select option gets like the image i shared above

onesine commented 1 year ago

Which version are you using? I am using the same options as you on the latest version and I have no problem. I can't reproduce the bug you have. The id, name and required options are not available at the moment.

sc0rp10n-py commented 1 year ago

@onesine I was using 1.8.0 but now i updated to 1.8.5, but still I get the same issue

sc0rp10n-py commented 1 year ago

@onesine any updates on this?

tiago-pinto commented 1 year ago

@onesine any updates on this?

I also had the same issue on my code, I was trying to find a solution here. The issue for me was that I was setting the value to an empty. I changed value to null during debugging and the placeholder appeared again, you could give it a try.

onesine commented 1 year ago

Hello

Thank you for your feedback. We will correct this very quickly.