feat: change event (#842)
This commit is contained in:
committed by
GitHub
parent
16819ed7be
commit
eff9a62c5b
@ -27,7 +27,7 @@ const DelimitedListControl: FC<WidgetControlProps<ValueOrNestedValue[], ListFiel
|
||||
() => (controlled || duplicate ? rawValue : internalRawValue),
|
||||
[controlled, duplicate, rawValue, internalRawValue],
|
||||
);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 200);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 250);
|
||||
|
||||
const ref = useRef<HTMLInputElement | null>(null);
|
||||
|
||||
|
@ -60,7 +60,8 @@ const MarkdownPreview: FC<WidgetPreviewProps<string, MarkdownField>> = previewPr
|
||||
setPrevValue(parsedValue);
|
||||
setValue(parsedValue);
|
||||
}
|
||||
}, [prevValue, setValue, value]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [value]);
|
||||
|
||||
return (
|
||||
<div key="markdown-preview">
|
||||
|
@ -24,7 +24,7 @@ const StringControl: FC<WidgetControlProps<string, StringOrTextField>> = ({
|
||||
() => (controlled || duplicate ? rawValue : internalRawValue),
|
||||
[controlled, duplicate, rawValue, internalRawValue],
|
||||
);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 200);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 250);
|
||||
|
||||
const ref = useRef<HTMLInputElement | null>(null);
|
||||
|
||||
|
@ -24,7 +24,7 @@ const TextControl: FC<WidgetControlProps<string, StringOrTextField>> = ({
|
||||
() => (duplicate ? rawValue : internalRawValue),
|
||||
[internalRawValue, duplicate, rawValue],
|
||||
);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 200);
|
||||
const debouncedInternalValue = useDebounce(internalValue, 250);
|
||||
|
||||
const ref = useRef<HTMLInputElement | null>(null);
|
||||
|
||||
|
Reference in New Issue
Block a user