UNPKG

app-walk

Version:

An intuitive guided walkthrough library with UI highlighting and voice narration for web apps.

10 lines (9 loc) 507 B
export function popupEvent(element, eventType = "input", options = { bubbles: true, cancelable: true }) { element.dispatchEvent(new Event(eventType, options)); } export function setNativeValue(element, value) { var _a; const prototype = Object.getPrototypeOf(element); const valueSetter = (_a = Object.getOwnPropertyDescriptor(prototype, "value")) === null || _a === void 0 ? void 0 : _a.set; valueSetter === null || valueSetter === void 0 ? void 0 : valueSetter.call(element, value); }