diff --git a/lib/common/utils.ts b/lib/common/utils.ts index 0340dc750..8c9603dc3 100644 --- a/lib/common/utils.ts +++ b/lib/common/utils.ts @@ -88,7 +88,10 @@ export function patchProperty(obj: any, prop: string) { let result; result = fn.apply(this, arguments); - if (result != undefined && !result) event.preventDefault(); + if (result != undefined && !result) { + event.preventDefault(); + } + return result; }; this[_prop] = wrapFn;