@mindinventory/mi-react-icon-picker
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -131,2 +131,3 @@ "use strict"; | ||
handleClosePopup(); | ||
setSearchQuery(""); // Clear search input on outside click | ||
} | ||
@@ -144,2 +145,13 @@ }; | ||
}, [isPopupVisible]); | ||
(0, _react.useEffect)(function () { | ||
var handleScroll = function handleScroll() { | ||
if (isPopupVisible) { | ||
updatePopupPosition(); | ||
} | ||
}; | ||
window.addEventListener("scroll", handleScroll); | ||
return function () { | ||
window.removeEventListener("scroll", handleScroll); | ||
}; | ||
}, [isPopupVisible]); | ||
@@ -146,0 +158,0 @@ // useEffect(() => { |
{ | ||
"name": "@mindinventory/mi-react-icon-picker", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"main": "lib/IconPicker.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
1623746
2554