Skip to content

Programatic open/close of dropdown #1655

@polaroidkidd

Description

@polaroidkidd

Describe the bug

The programatic open and close appears to be broken.

I think this is related to #1067

Steps to reproduce:

  1. Click on button to open
  2. Click on button again to close
  3. Click on button again to open

Expected Behavior:

Dropdown opens

Observed Behavior:

Dropdown briefly opens, then switches again into the closed state. Only a click outside of the Button will fix this.

Reproduction

You can observe this behavior here - https://flowbite-svelte.com/docs/components/dropdown#programatic-open/close

Version and System Info

Tested on Linux Brave and Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions