@coders-tm/vue-number-format
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -198,2 +198,14 @@ /** | ||
/** | ||
* Creates a CustomEvent('blur') with detail = { facade: true } | ||
* used as a way to identify our own blur event | ||
*/ | ||
function FacadeBlurEvent() { | ||
return new CustomEvent('blur', { | ||
bubbles: true, | ||
cancelable: true, | ||
detail: { facade: true }, | ||
}) | ||
} | ||
/** | ||
* ensure that the element we're attaching to is an input element | ||
@@ -331,3 +343,3 @@ * if not try to find an input element in this elements childrens | ||
if (oldValue !== target.value) { | ||
target.dispatchEvent(FacadeInputEvent()); | ||
target.dispatchEvent(FacadeBlurEvent()); | ||
} | ||
@@ -334,0 +346,0 @@ } |
@@ -194,2 +194,14 @@ /** | ||
/** | ||
* Creates a CustomEvent('blur') with detail = { facade: true } | ||
* used as a way to identify our own blur event | ||
*/ | ||
function FacadeBlurEvent() { | ||
return new CustomEvent('blur', { | ||
bubbles: true, | ||
cancelable: true, | ||
detail: { facade: true }, | ||
}) | ||
} | ||
/** | ||
* ensure that the element we're attaching to is an input element | ||
@@ -327,3 +339,3 @@ * if not try to find an input element in this elements childrens | ||
if (oldValue !== target.value) { | ||
target.dispatchEvent(FacadeInputEvent()); | ||
target.dispatchEvent(FacadeBlurEvent()); | ||
} | ||
@@ -330,0 +342,0 @@ } |
{ | ||
"name": "@coders-tm/vue-number-format", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", |
36099
938