We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc80f7a commit 0fcdb8fCopy full SHA for 0fcdb8f
src/forms/helpers/useFormControl.js
@@ -3,7 +3,7 @@ import { isEmptyStringLike, isBoolean, isFunction } from 'js-var-type';
3
import { FormContext } from './form-helpers';
4
import { toDatetimeLocal, fromDatetimeLocal } from '../../utils/formatters';
5
6
-export function useFormControl(name, type, hooks = { afterChange: () => {} }) {
+export function useFormControl(name, type, hooks = {}) {
7
const formState = useContext(FormContext);
8
9
function setValue(value) {
0 commit comments