@mindinventory/mi-react-icon-picker
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -93,2 +93,3 @@ "use strict"; | ||
var popupRef = (0, _react.useRef)(null); | ||
var inputRef = (0, _react.useRef)(null); | ||
var IconsPerPage = gridColumns * gridRows; | ||
@@ -241,2 +242,9 @@ // Function to update the popup position based on button's position | ||
}; | ||
(0, _react.useEffect)(function () { | ||
setTimeout(function () { | ||
if (inputRef.current) { | ||
inputRef.current.focus(); | ||
} | ||
}, 0); | ||
}, [isPopupVisible]); | ||
var classNames = function classNames() { | ||
@@ -270,3 +278,4 @@ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) { | ||
}, | ||
className: "mb-2 py-2 text-base border-gray-300 border-b outline-none" | ||
className: "mb-2 py-2 text-base border-gray-300 border-b outline-none", | ||
ref: inputRef | ||
})), (iconsToDisplay === null || iconsToDisplay === void 0 ? void 0 : iconsToDisplay.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", { | ||
@@ -273,0 +282,0 @@ className: "w-full flex justify-between items-center mb-2 px-1" |
{ | ||
"name": "@mindinventory/mi-react-icon-picker", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"main": "lib/IconPicker.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
1624638
2526