feat: handle radio change
This commit is contained in:
@@ -93,11 +93,10 @@ export const InterpretationLog = () => {
|
|||||||
scrollLogToBottom();
|
scrollLogToBottom();
|
||||||
}, [log, scrollLogToBottom]);
|
}, [log, scrollLogToBottom]);
|
||||||
|
|
||||||
const handleRadioChange = (event: any) => {
|
const handleRadioChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
if (event.target.value === 'custom') {
|
setSelectedOption(event.target.value);
|
||||||
setCustomValue(''); // Clear previous custom value on selection
|
};
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleCustomInputChange = (event: any) => {
|
const handleCustomInputChange = (event: any) => {
|
||||||
setCustomValue(event.target.value);
|
setCustomValue(event.target.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user