sersavan / shadcn-multi-select-component

A multi-select component designed with shadcn/ui
https://shadcn-multi-select-component.vercel.app
MIT License
766 stars 31 forks source link

MultiSelect does not respect the maxCount #35

Open rhijjawi opened 2 weeks ago

rhijjawi commented 2 weeks ago

Steps to repro:

<MultiSelect
  modalPopover={true}
  className="overflow-y-auto"
  options={list}
  onValueChange={(e : string[])=>{
      setSelected(e)
  }}
  defaultValue={selected}
  placeholder="Select up to 20"
  variant="secondary"
  animation={0}
  maxCount={5}
 />