@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/cjs/index.js CHANGED
@@ -2581,14 +2581,14 @@ function useFieldAutocomplete(props) {
2581
2581
  return () => {
2582
2582
  onChange(element);
2583
2583
  };
2584
- }, []);
2584
+ }, [onChange]);
2585
2585
  const onKeydownElement = require$$0.useCallback((element) => {
2586
2586
  return (event) => {
2587
2587
  event.code === 'Enter'
2588
2588
  ? onChange(element)
2589
2589
  : controller.navigationElement(event);
2590
2590
  };
2591
- }, [controller.navigationElement]);
2591
+ }, [onChange, controller.navigationElement]);
2592
2592
  return {
2593
2593
  ...controller,
2594
2594
  coincidences,
@@ -2969,14 +2969,14 @@ function useFieldSelect(props) {
2969
2969
  return () => {
2970
2970
  onChange(element);
2971
2971
  };
2972
- }, []);
2972
+ }, [onChange]);
2973
2973
  const onKeydownElement = require$$0.useCallback((element) => {
2974
2974
  return (event) => {
2975
2975
  event.code === 'Enter'
2976
2976
  ? onChange(element)
2977
2977
  : controller.navigationElement(event);
2978
2978
  };
2979
- }, [controller.navigationElement]);
2979
+ }, [onChange, controller.navigationElement]);
2980
2980
  return {
2981
2981
  ...controller,
2982
2982
  onBlurInput,