Skip to content

On click event? #132

@phstc

Description

@phstc

Hey,

I would like to ask you if there's a way to trigger an event on drop click, before opening a drop.

I tried this:

@drop._on @drop.target, 'click', -> console.log('click')
@drop.on 'open', -> console.log('open')

But I'm getting open before click in the console. I know what I need might seems wrong, but I need something to trigger based on the user interaction (click on the drop to open it), because I also call open programatically, and based on my current implementation it's hard to differentiate when its being opened because of a user interaction or because I @drop.open programatically.

Is there a way to do that with Drop?

Thanks

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