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

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

Open
sebestenyb opened this issue Jun 11, 2024 · 0 comments
Open

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

sebestenyb opened this issue Jun 11, 2024 · 0 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
└── [email protected]

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.

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