hplx-react-elements-dev 1.0.78 → 1.0.79

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.
package/dist/esm/index.js CHANGED
@@ -17811,13 +17811,11 @@ var InputTag = function InputTag(_a) {
17811
17811
  return allowDuplicates || !tags.includes(option.value);
17812
17812
  });
17813
17813
  setDropdownArr(filteredOptions);
17814
- } // Focus on the input element
17814
+ } // Set the dropdown offset
17815
17815
 
17816
17816
 
17817
- inputRef.current && inputRef.current.focus(); // Set the dropdown offset
17818
-
17819
- setdropdownOffset("".concat((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.offsetLeft, "px"));
17820
- }, [options, tags, inputRef, allowDuplicates]); // This function handles the click event of a dropdown item
17817
+ showDropdown && setdropdownOffset("".concat((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.offsetLeft, "px"));
17818
+ }, [options, tags, inputRef, allowDuplicates, showDropdown]); // This function handles the click event of a dropdown item
17821
17819
 
17822
17820
  var handleDropdownClick = function handleDropdownClick(selectedItem) {
17823
17821
  setTagInputValue(""); // Set a timeout to add the selected item to the tags after a certain time
@@ -18019,7 +18017,7 @@ var InputTag = function InputTag(_a) {
18019
18017
  }
18020
18018
 
18021
18019
  setdropdownOffset("".concat((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.offsetLeft, "px"));
18022
- }, [editIndex]);
18020
+ }, [editIndex, dropdownArr]);
18023
18021
  return jsxRuntime.exports.jsxs("div", __assign({
18024
18022
  className: "inputTag hplxt-w-auto hplxt-h-auto hplxt-gap-1 hplxt-p-1.5 hplxt-flex hplxt-flex-wrap hplxt-border-1 hplxt-rounded-lg hplxt-border-Blue_gray-100 hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary ".concat(active ? "hplxt-border-Primary-300 hplxt-shadow-xs-primary" : "", " ").concat(disabled ? "hplxt-bg-Gray-50" : "", " ").concat(className)
18025
18023
  }, {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.78",
12
+ "version": "1.0.79",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",