Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 5c4e24d

Browse files
JiaLiPassionmhevery
authored andcommitted
fix(event): fix #667, eventHandler should return result (#682)
1 parent 81297ee commit 5c4e24d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/common/utils.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ export function patchProperty(obj: any, prop: string) {
8888
let result;
8989
result = fn.apply(this, arguments);
9090

91-
if (result != undefined && !result) event.preventDefault();
91+
if (result != undefined && !result) {
92+
event.preventDefault();
93+
}
94+
return result;
9295
};
9396

9497
this[_prop] = wrapFn;

0 commit comments

Comments
 (0)