We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb51de7 commit ff83392Copy full SHA for ff83392
packages/form-js-viewer/src/render/components/form-fields/Textfield.js
@@ -19,12 +19,19 @@ export function Textfield(props) {
19
20
const { required } = validate;
21
22
- const [onInputChange, flushOnChange] = useFlushDebounce(({ target }) => {
+ const [onChange, flushOnChange] = useFlushDebounce(({ target }) => {
23
props.onChange({
24
value: target.value,
25
});
26
27
28
+ /**
29
+ * @param {import('preact').JSX.TargetedEvent<HTMLInputElement, Event>} event
30
+ */
31
+ const onInputChange = (event) => {
32
+ onChange({ target: event.target });
33
+ };
34
+
35
const onInputBlur = () => {
36
flushOnChange && flushOnChange();
37
onBlur && onBlur();
0 commit comments