diff --git a/src/document/patchFocus.ts b/src/document/patchFocus.ts index f6e5d83b..82a25b7f 100644 --- a/src/document/patchFocus.ts +++ b/src/document/patchFocus.ts @@ -20,11 +20,13 @@ export function patchFocus(HTMLElement: typeof globalThis['HTMLElement']) { Object.defineProperties(HTMLElement.prototype, { focus: { configurable: true, - get: () => patchedFocus, + value: patchedFocus, + writable: true, }, blur: { configurable: true, - get: () => patchedBlur, + value: patchedBlur, + writable: true, }, [patched]: { configurable: true,