Fix handler in form/field hooks
This commit is contained in:
@@ -3,7 +3,7 @@ import { useCallback, useState } from 'react';
|
||||
export default (initialValue) => {
|
||||
const [value, setValue] = useState(initialValue);
|
||||
|
||||
const handleChange = useCallback(({ target: { value: nextValue } }) => {
|
||||
const handleChange = useCallback((_, { value: nextValue }) => {
|
||||
setValue(nextValue);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user