hplx-react-elements-dev 1.0.81 → 1.0.82

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
@@ -17944,8 +17944,9 @@ var InputTag = function InputTag(_a) {
17944
17944
  var addTags = function addTags(e) {
17945
17945
  var ITEM_HEIGHT = 40;
17946
17946
 
17947
- if (e.keyCode === 13 && tagInputValue.trim() && tagInputValue.trim().length > 1 && (allowDuplicates || !tags.includes(tagInputValue.trim())) // check if allowDuplicates flag is true or tagInputValue is not already in tags
17947
+ if ((e.keyCode === 9 || e.keyCode === 13) && tagInputValue.trim() && tagInputValue.trim().length > 1 && (allowDuplicates || !tags.includes(tagInputValue.trim())) // check if allowDuplicates flag is true or tagInputValue is not already in tags
17948
17948
  ) {
17949
+ e.preventDefault();
17949
17950
  setTags(__spreadArray(__spreadArray([], tags, true), [tagInputValue.trim()], false));
17950
17951
  setValue(tags.filter(Boolean).join(", "));
17951
17952
  setTagInputValue("");
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.81",
12
+ "version": "1.0.82",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",