intelicoreact 0.3.59 → 0.3.60
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,17 @@ 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
269
|
(0, _react.useLayoutEffect)(function () {
|
|
265
270
|
window.addEventListener('resize', setListContainerStyles);
|
|
271
|
+
window.addEventListener('scroll', closeList);
|
|
266
272
|
return function () {
|
|
267
273
|
window.removeEventListener('resize', setListContainerStyles);
|
|
274
|
+
window.removeEventListener('scroll', closeList);
|
|
268
275
|
};
|
|
269
276
|
}, [getListContainer]);
|
|
270
277
|
(0, _react.useEffect)(function () {
|