@rolster/react-components 18.21.7 → 18.21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.js CHANGED
@@ -2579,14 +2579,14 @@ function useFieldAutocomplete(props) {
2579
2579
  return () => {
2580
2580
  onChange(element);
2581
2581
  };
2582
- }, []);
2582
+ }, [onChange]);
2583
2583
  const onKeydownElement = useCallback((element) => {
2584
2584
  return (event) => {
2585
2585
  event.code === 'Enter'
2586
2586
  ? onChange(element)
2587
2587
  : controller.navigationElement(event);
2588
2588
  };
2589
- }, [controller.navigationElement]);
2589
+ }, [onChange, controller.navigationElement]);
2590
2590
  return {
2591
2591
  ...controller,
2592
2592
  coincidences,
@@ -2967,14 +2967,14 @@ function useFieldSelect(props) {
2967
2967
  return () => {
2968
2968
  onChange(element);
2969
2969
  };
2970
- }, []);
2970
+ }, [onChange]);
2971
2971
  const onKeydownElement = useCallback((element) => {
2972
2972
  return (event) => {
2973
2973
  event.code === 'Enter'
2974
2974
  ? onChange(element)
2975
2975
  : controller.navigationElement(event);
2976
2976
  };
2977
- }, [controller.navigationElement]);
2977
+ }, [onChange, controller.navigationElement]);
2978
2978
  return {
2979
2979
  ...controller,
2980
2980
  onBlurInput,