Skip to content

Commit 66bca4e

Browse files
committed
Fix Safari Issue
1 parent 33150ea commit 66bca4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/component.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export default defineComponent({
2929
},
3030
nullValue: {
3131
type: [Number, String],
32-
required: false,
3332
default: options.nullValue
3433
},
3534
masked: {

src/core.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ export function inputHandler(event: CustomInputEvent) {
168168

169169
/**
170170
* Blur event handler
171+
*
172+
* @param {Event} event The event object
171173
*/
172174
export function blurHandler(event: Event) {
173175
const { target, detail } = event as CustomInputEvent
@@ -182,7 +184,7 @@ export function blurHandler(event: Event) {
182184
updateValue(target, null, { force: true, emit: false, clean: true })
183185

184186
if (oldValue !== target.value) {
185-
target.dispatchEvent(InputEvent('input'))
187+
target.dispatchEvent(InputEvent('change'))
186188
}
187189
}
188190

0 commit comments

Comments
 (0)