Skip to content

Commit 4c89c35

Browse files
committed
change blur event
1 parent 8aedae6 commit 4c89c35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export function FacadeInputEvent() {
2323
}
2424

2525
/**
26-
* Creates a CustomEvent('blur') with detail = { facade: true }
27-
* used as a way to identify our own blur event
26+
* Creates a CustomEvent('change') with detail = { facade: true }
27+
* used as a way to identify our own change event
2828
*/
29-
export function FacadeBlurEvent() {
30-
return new CustomEvent('blur', {
29+
export function FacadeChangeEvent() {
30+
return new CustomEvent('change', {
3131
bubbles: true,
3232
cancelable: true,
3333
detail: { facade: true }
@@ -155,9 +155,9 @@ export function blurHandler(event) {
155155

156156
const { oldValue } = target[CONFIG_KEY]
157157

158-
updateValue(target, null, { force: true, clean: true }, event)
158+
updateValue(target, null, { force: true, emit: false, clean: true }, event)
159159

160160
if (oldValue !== target.value) {
161-
target.dispatchEvent(FacadeBlurEvent())
161+
target.dispatchEvent(FacadeChangeEvent())
162162
}
163163
}

0 commit comments

Comments
 (0)