@coders-tm/vue-number-format
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -186,2 +186,14 @@ /** | ||
/** | ||
* Creates a CustomEvent('change') with detail = { facade: true } | ||
* used as a way to identify our own change event | ||
*/ | ||
function FacadeChangeEvent() { | ||
return new CustomEvent('change', { | ||
bubbles: true, | ||
cancelable: true, | ||
detail: { facade: true } | ||
}) | ||
} | ||
/** | ||
* ensure that the element we're attaching to is an input element | ||
@@ -256,3 +268,3 @@ * if not try to find an input element in this elements childrens | ||
// drawback is that we endup with two's input events in firefox | ||
return emit && el.dispatchEvent(FacadeInputEvent()) | ||
return emit && el.dispatchEvent(FacadeInputEvent()) && el.dispatchEvent(FacadeChangeEvent()) | ||
} | ||
@@ -259,0 +271,0 @@ } |
@@ -182,2 +182,14 @@ /** | ||
/** | ||
* Creates a CustomEvent('change') with detail = { facade: true } | ||
* used as a way to identify our own change event | ||
*/ | ||
function FacadeChangeEvent() { | ||
return new CustomEvent('change', { | ||
bubbles: true, | ||
cancelable: true, | ||
detail: { facade: true } | ||
}) | ||
} | ||
/** | ||
* ensure that the element we're attaching to is an input element | ||
@@ -252,3 +264,3 @@ * if not try to find an input element in this elements childrens | ||
// drawback is that we endup with two's input events in firefox | ||
return emit && el.dispatchEvent(FacadeInputEvent()) | ||
return emit && el.dispatchEvent(FacadeInputEvent()) && el.dispatchEvent(FacadeChangeEvent()) | ||
} | ||
@@ -255,0 +267,0 @@ } |
{ | ||
"name": "@coders-tm/vue-number-format", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", |
34236
860