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