hsuanyi-chou / shadcn-ui-expansions

More components built on top of shadcn-ui.
https://shadcnui-expansions.typeart.cc/
MIT License
856 stars 38 forks source link

Popover content doesn't show up when used inside accordion. #68

Closed NiroopR1999 closed 5 months ago

NiroopR1999 commented 5 months ago
   <Accordion
          type="single"
          collapsible
          className="w-full p-2 shadow-md relative"
          defaultValue="Assist Users"
        >
          <AccordionItem value="Assist Users" className="border-none">
            <AccordionTrigger className="font-bold text-xl hover:no-underline">
              Assist Users
            </AccordionTrigger>
            <AccordionContent>

              <MultipleSelector
                defaultOptions={OPTIONS}
                placeholder="Select frameworks you like..."
                emptyIndicator={
                  <p className="text-center text-lg leading-10 text-gray-600 dark:text-gray-400">
                    no results found.
                  </p>
                }
              />
            </AccordionContent>
          </AccordionItem>
        </Accordion>
      </>

Video

hsuanyi-chou commented 5 months ago

Can you provide the repo?

Sorry, I've been a bit busy recently. I'll dig into it when I have some free time.

NiroopR1999 commented 5 months ago

Hi, sure. Repo. Please assist in resolving the issue. This problem is hindering progress, especially after persuading my team lead to opt for Shadcn over Ant Design due to this unique multiple-selector component made by you, which Shadcn lacks. Your help in resolving this matter would be greatly appreciated. Thank you.

hsuanyi-chou commented 5 months ago

Do you push your code? I only see the initialization of next.

NiroopR1999 commented 5 months ago

Hi, sorry. I forgot to push the changes. Now I have updated the repo, kindly check it.

hsuanyi-chou commented 5 months ago

There's a overflow-hidden in accordion. Remove it and you will see the dropdown.

It's not an issue. Only css problem.

image

image

NiroopR1999 commented 5 months ago

Yes, it resolved the issue. Thanks a lot for your help.