@@ -65,7 +65,7 @@ export function getInputElement(el: HTMLElement | HTMLInputElement): CustomInput
65
65
66
66
/* istanbul ignore next */
67
67
if ( ! inputElement ) {
68
- throw new Error ( 'facade directive requires an input element' )
68
+ throw new Error ( 'number directive requires an input element' )
69
69
}
70
70
71
71
return inputElement as CustomInputElement
@@ -149,7 +149,7 @@ export function inputHandler(event: CustomInputEvent) {
149
149
positionFromEnd = target . value . length - target . selectionEnd
150
150
}
151
151
152
- updateValue ( target , null , { emit : false , clean : ! options . precision } )
152
+ updateValue ( target , null , { clean : ! options . precision } )
153
153
154
154
// updated cursor position
155
155
if ( options . suffix ) {
@@ -172,12 +172,11 @@ export function inputHandler(event: CustomInputEvent) {
172
172
* @param {Event } event The event object
173
173
*/
174
174
export function blurHandler ( event : Event ) {
175
- const { target, detail } = event as CustomInputEvent
175
+ const { target } = event as CustomInputEvent
176
176
177
- // We dont need to run this method on the event we emit (prevent event loop)
178
- if ( detail ?. facade ) {
179
- return false
180
- }
177
+ // since we will be emitting our own custom input event
178
+ // we can stop propagation of this native event
179
+ event . stopPropagation ( )
181
180
182
181
const { oldValue } = target
183
182
0 commit comments