Skip to content

Commit e6a2382

Browse files
committed
fix: does this fix the CI test run?
1 parent a2b845b commit e6a2382

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/material-renderers/src/util/debounce.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const useDebouncedChange = ({
4040
handleChange,
4141
data,
4242
path,
43-
eventToValue = defaultEventToValue,
43+
eventToValue = undefined,
4444
defaultValue = '',
4545
flushOnBlur = false,
4646
focused = false,
@@ -61,7 +61,9 @@ export const useDebouncedChange = ({
6161
}, [focused, flushOnBlur, debouncedUpdate]);
6262
const onChange = useCallback(
6363
(ev: any) => {
64-
const newValue = eventToValue(ev);
64+
const newValue = eventToValue
65+
? eventToValue(ev)
66+
: defaultEventToValue(ev);
6567
setInput(newValue ?? defaultValue);
6668
debouncedUpdate(newValue);
6769
},

0 commit comments

Comments
 (0)