hplx-react-elements-dev 1.0.59 → 1.0.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.
Files changed (2) hide show
  1. package/dist/esm/index.js +7 -12
  2. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -17681,17 +17681,7 @@ var InputTag = function InputTag(_a) {
17681
17681
  setTags(tagString.split(",").filter(Boolean).map(function (item) {
17682
17682
  return item.trim();
17683
17683
  }));
17684
- }, [tagString]); // useEffect(() => {
17685
- // let incomingTags=value.split("\\s*,\\s*");
17686
- // incomingTags = incomingTags.filter(Boolean)
17687
- // setTags(tagList)
17688
- // }, [tagList]);
17689
- // useEffect(() => {
17690
- // let incomingTags=value.split("\\s*,\\s*");
17691
- // incomingTags = incomingTags.filter(Boolean)
17692
- // setTags(incomingTags)
17693
- // }, [value]);
17694
-
17684
+ }, [tagString]);
17695
17685
  useEffect(function () {
17696
17686
  document.addEventListener("mousedown", handleClickOutside);
17697
17687
  return function () {
@@ -17706,7 +17696,12 @@ var InputTag = function InputTag(_a) {
17706
17696
  };
17707
17697
 
17708
17698
  var handleBlur = function handleBlur(event) {
17709
- setTagInputValue("");
17699
+ if (tagInputValue) {
17700
+ setTags(__spreadArray(__spreadArray([], tags, true), [tagInputValue], false));
17701
+ setValue(tags.filter(Boolean).join(", "));
17702
+ setTagInputValue("");
17703
+ }
17704
+
17710
17705
  setShowDropdown(false);
17711
17706
  setActive(false);
17712
17707
  onBlur && onBlur(event);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.59",
12
+ "version": "1.0.60",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",