We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
HTMLElement.prototype.focus
.blur
1 parent c6ae212 commit 63ac399Copy full SHA for 63ac399
1 file changed
src/document/patchFocus.ts
@@ -20,11 +20,13 @@ export function patchFocus(HTMLElement: typeof globalThis['HTMLElement']) {
20
Object.defineProperties(HTMLElement.prototype, {
21
focus: {
22
configurable: true,
23
- get: () => patchedFocus,
+ value: patchedFocus,
24
+ writable: true,
25
},
26
blur: {
27
- get: () => patchedBlur,
28
+ value: patchedBlur,
29
30
31
[patched]: {
32
0 commit comments