Skip to content
New issue

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

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

Already on GitHub? # to your account

Accept and Complete events are not fired in version 7 #1047

Closed
sebestenyb opened this issue Jun 11, 2024 · 3 comments
Closed

Accept and Complete events are not fired in version 7 #1047

sebestenyb opened this issue Jun 11, 2024 · 3 comments

Comments

@sebestenyb
Copy link

sebestenyb commented Jun 11, 2024

Describe the bug
Upgraded the package from 6.* to 7.*, and the @accept and @complete events are not fired using directive.
We use Vite (with Laravel) to package and chunk the JS code.

To Reproduce

// app.ts
import {IMaskDirective} from 'vue-imask';

app.directive("mask", IMaskDirective as Directive);
// Component.vue
    <input
        v-model="numberModel"
        v-mask="Number"
        radix="."
        :unmask="true"
        @accept="onAccept"
        @complete="onComplete"
    />
// Component.vue
const numberModel = ref('');

const onAccept = (event: CustomEvent) => {
    console.log(event)
}
const onComplete = (event: CustomEvent) => {
    console.log(event)
}
// npm
npm list vue-imask
trips@ ~/Sites/trips
└── vue-imask@7.6.1

Expected behavior
We expect the events to be fired

We know it's not a lot of information, but we are in the dark here a bit, no errors, the mask works as it is supposed to work, masking the input, but the events are not fired. Any idea would be appreciated.

Environment:

  • OS: *
  • Browser: *
  • Version *
  • IMask version: 7.6.1 (checked for all 7.*)

Additional context
Add any other context about the problem here.

@bezuglyyvlad
Copy link

I've also faced this problem. Mask is applied to value, but onAccept is not fired

@guynikan
Copy link

anyone?

@uNmAnNeR
Copy link
Owner

it seems working fine in my case:
https://stackblitz.com/edit/vue-8qtd5w?file=src%2FApp.vue

feel free to reopen issue if you have more context about the problem

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants