mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Refactor code, fix UI and logic code
This commit is contained in:
@@ -110,7 +110,11 @@ const useForm = (
|
||||
|
||||
// Event handler for handling changes in input.
|
||||
const handleOnChange = useCallback(
|
||||
(event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
|
||||
(
|
||||
event: ChangeEvent<
|
||||
HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
||||
>,
|
||||
) => {
|
||||
setIsDirty(true);
|
||||
|
||||
let error = '';
|
||||
|
||||
Reference in New Issue
Block a user