You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
Hi
First of all great work, I love this library!
Is it possible to refactor the trigger function since the initEvent is now deprecated according to Mozilla? https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent
Instead we could check if the current environment supports the new Event API, something like this:
export const trigger = (el, type) => {
let e;
if (window.Event) {
e = new window.Event(type, { bubbles: true, cancelable: true });
} else {
e = document.createEvent("HTMLEvents");
e.initEvent(type, true, true);
}
el.dispatchEvent(e);
};
The text was updated successfully, but these errors were encountered:
v-mask/src/utils/index.js
Line 10 in 0609c96
Hi
First of all great work, I love this library!
Is it possible to refactor the trigger function since the initEvent is now deprecated according to Mozilla?
https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent
Instead we could check if the current environment supports the new Event API, something like this:
The text was updated successfully, but these errors were encountered: