Skip to content

Commit 0fcdb8f

Browse files
committed
fix(forms): remove noop default value for afterChange callback
1 parent bc80f7a commit 0fcdb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forms/helpers/useFormControl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isEmptyStringLike, isBoolean, isFunction } from 'js-var-type';
33
import { FormContext } from './form-helpers';
44
import { toDatetimeLocal, fromDatetimeLocal } from '../../utils/formatters';
55

6-
export function useFormControl(name, type, hooks = { afterChange: () => {} }) {
6+
export function useFormControl(name, type, hooks = {}) {
77
const formState = useContext(FormContext);
88

99
function setValue(value) {

0 commit comments

Comments
 (0)