File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/plugins/es_ui_shared/static/forms/components/fields Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,16 @@ interface Props {
3131
3232export const RangeField = ( { field, euiFieldProps = { } , ...rest } : Props ) => {
3333 const { isInvalid, errorMessage } = getFieldValidityAndErrorMessage ( field ) ;
34+ const { onChange : onFieldChange } = field ;
3435
3536 const onChange = useCallback (
3637 ( e : React . ChangeEvent < HTMLInputElement > | React . MouseEvent < HTMLButtonElement > ) => {
3738 const event = ( { ...e , value : `${ e . currentTarget . value } ` } as unknown ) as React . ChangeEvent < {
3839 value : string ;
3940 } > ;
40- field . onChange ( event ) ;
41+ onFieldChange ( event ) ;
4142 } ,
42- // https://github.com/elastic/kibana/issues/73972
43- /* eslint-disable-next-line react-hooks/exhaustive-deps */
44- [ field . onChange ]
43+ [ onFieldChange ]
4544 ) ;
4645
4746 return (
You can’t perform that action at this time.
0 commit comments