Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events not being prevented #97

Open
CHEWX opened this issue Oct 15, 2020 · 0 comments
Open

Events not being prevented #97

CHEWX opened this issue Oct 15, 2020 · 0 comments

Comments

@CHEWX
Copy link

CHEWX commented Oct 15, 2020

Hi,

I'm using vue-select, to trigger this.$copyText(), however, this method is prevent vue-select do it's thing, as if it's event.stopPropagation() or something.

If I remove the method the select closes, but if not, it stays open and doesn't complete it's event.

Currently having to hack around it so vue-select finishes it's thing before this.$copyText() fires.

<v-select v-on:input="copyLink"></v-select>
copyText() {

    ...

    setTimeout( () => {
        this.$copyText( 'some text' ).then(() => this.$nuxt.$emit('displayNotification', `Link Copied!`) )
    }, 5)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant