Skip to content

Selecting an option from the dropdown triggers parent elements click event handlers  #387

@raphael-yapla

Description

@raphael-yapla

Version

  • Vue version: 3

Description

Very similar to #182, it seems the option elements in the dropdown are using the mousedown event instead of click resulting in involuntary triggering of parent elements when selecting an option. This is a very frustrating problem when using it in modals or stuff that can be closed by clicking on the parent element.

Other related issues: #323 and #295

Demo

https://jsfiddle.net/9ez4pk5j/53/

There's a click event bound to the blue zone, when selecting an option that's above it, it will trigger the event, when clicking on the red zone, nothing happens as expected.

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