Skip to content

react-selecto preventDefault and event propagation #177

@SerdarSanri

Description

@SerdarSanri

First of all great script. Thank you for all contributed.

Is there any way to prevent default action or event propagation on selected elements? On react application, when I click on button element select event works fine but also triggers the click event on the element. I tried to add `preventDefault' but didn't seem to work. also tried

onSelect={e => {
                    console.log(e);
                    e.inputEvent.preventDefault();
                    e.inputEvent.stopPropagation();
                    e.inputEvent.stopImmediatePropagation();
}}

but that also doesn't seem to have any affect either. Button or link still receives click event and triggers handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions