@hitachivantara/uikit-react-core
Version:
Core React components for the NEXT Design System.
13 lines (12 loc) • 426 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const changeInputValue = (input, value = "") => {
const event = new Event("input", { bubbles: true });
const setInputValue = Object.getOwnPropertyDescriptor(
window.HTMLInputElement.prototype,
"value"
)?.set;
setInputValue?.call(input, value);
input?.dispatchEvent(event);
};
exports.changeInputValue = changeInputValue;