@true-engineering/true-react-common-ui-kit 3.45.3 → 3.45.4

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/README.md CHANGED
@@ -11,6 +11,12 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.45.4
15
+
16
+ ### Changes
17
+
18
+ - **Select**: Убирает лишние вызовы `onBlur` при использовании Popper, если поле не открыто
19
+
14
20
  ## 3.45.3
15
21
 
16
22
  - **Flag**: Добавлены флаги для Абхазии и Южной Осетии
@@ -11829,9 +11829,13 @@ function Select(props) {
11829
11829
  dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
11830
11830
  ]);
11831
11831
  var handleListClose = useCallback(function(event) {
11832
+ if (!isListOpen) {
11833
+ return;
11834
+ }
11832
11835
  closeList();
11833
11836
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
11834
11837
  }, [
11838
+ isListOpen,
11835
11839
  closeList,
11836
11840
  onBlur
11837
11841
  ]);