MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / changeInput

Function changeInput

packages/app-core/src/components/SettingsModal.test.ts:95–99  ·  view source on GitHub ↗
(input: HTMLInputElement, value: string)

Source from the content-addressed store, hash-verified

93}))
94
95function changeInput(input: HTMLInputElement, value: string): void {
96 const setter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set
97 setter?.call(input, value)
98 input.dispatchEvent(new Event('input', { bubbles: true }))
99}
100
101function blurInput(input: HTMLInputElement): void {
102 input.dispatchEvent(new FocusEvent('focusout', { bubbles: true }))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected