intelicoreact 0.3.60 → 0.3.61
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.
|
@@ -261,17 +261,13 @@ var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
(0, _react.useEffect)(initListContainer, []);
|
|
264
|
-
|
|
265
|
-
var closeList = function closeList() {
|
|
266
|
-
return setIsOpen(false);
|
|
267
|
-
};
|
|
268
|
-
|
|
264
|
+
var closeList = handleClickOutside;
|
|
269
265
|
(0, _react.useLayoutEffect)(function () {
|
|
270
266
|
window.addEventListener('resize', setListContainerStyles);
|
|
271
|
-
window.addEventListener('
|
|
267
|
+
window.addEventListener('mousewheel', closeList);
|
|
272
268
|
return function () {
|
|
273
269
|
window.removeEventListener('resize', setListContainerStyles);
|
|
274
|
-
window.removeEventListener('
|
|
270
|
+
window.removeEventListener('mousewheel', closeList);
|
|
275
271
|
};
|
|
276
272
|
}, [getListContainer]);
|
|
277
273
|
(0, _react.useEffect)(function () {
|