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

How use @keydown events #136

Open
zaratedev opened this issue Jan 16, 2020 · 0 comments
Open

How use @keydown events #136

zaratedev opened this issue Jan 16, 2020 · 0 comments

Comments

@zaratedev
Copy link

For use @keydown on the-mask directive use https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components

Example

<the-mask
    :mask="'##/##'"
    id="card_date"
    name="card_date"
    v-model="form.card.date"
    class="form-control w-25"
    placeholder="MM/YY"
    :class="{ 'is-invalid': errors.has('card.date') }"
    @keydown.native="errors.clear('card.date')"
/>

See issue for more information #92

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