hplx-react-elements-dev 1.0.76 → 1.0.77

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
@@ -17877,6 +17877,8 @@ var InputTag = function InputTag(_a) {
17877
17877
  };
17878
17878
 
17879
17879
  var addTags = function addTags(e) {
17880
+ var ITEM_HEIGHT = 40;
17881
+
17880
17882
  if (e.keyCode === 13 && tagInputValue.trim()) {
17881
17883
  setTags(__spreadArray(__spreadArray([], tags, true), [tagInputValue.trim()], false));
17882
17884
  setValue(tags.filter(Boolean).join(", "));
@@ -17898,7 +17900,7 @@ var InputTag = function InputTag(_a) {
17898
17900
  var focusI = focusIndex + 1;
17899
17901
 
17900
17902
  if (wrapperRef && wrapperRef.current) {
17901
- wrapperRef.current.scrollBy(0, 18);
17903
+ wrapperRef.current.scrollBy(0, ITEM_HEIGHT);
17902
17904
  }
17903
17905
 
17904
17906
  setFocusIndex(focusI);
@@ -17907,11 +17909,11 @@ var InputTag = function InputTag(_a) {
17907
17909
 
17908
17910
 
17909
17911
  if (e.keyCode === 38) {
17910
- if (focusIndex !== 0) {
17912
+ if (focusIndex > 0) {
17911
17913
  var focusI = focusIndex - 1;
17912
17914
 
17913
17915
  if (wrapperRef && wrapperRef.current) {
17914
- wrapperRef.current.scrollBy(0, -18);
17916
+ wrapperRef.current.scrollBy(0, -ITEM_HEIGHT);
17915
17917
  }
17916
17918
 
17917
17919
  setFocusIndex(focusI);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.76",
12
+ "version": "1.0.77",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",