@stellar-expert/ui-framework 1.11.6 → 1.11.7

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.
@@ -43,7 +43,7 @@ function calculateTooltipPosition(target, node, desiredPlace, offset) {
43
43
  getTipOffsetBottom(p) > window.innerHeight //outside bottom
44
44
  }
45
45
 
46
- let place
46
+ let place = 'top'
47
47
  if (!isOutside(desiredPlace)) {
48
48
  place = desiredPlace || 'top'
49
49
  } else {
@@ -166,7 +166,8 @@ export const Tooltip = React.memo(function Tooltip({trigger, desiredPlace = 'top
166
166
  content = useRef(null)
167
167
 
168
168
  function mouseEnter(e) {
169
- if (visible) return
169
+ if (visible)
170
+ return
170
171
  const {place, position} = calculateTooltipPosition(e.currentTarget, content.current, desiredPlace, offset)
171
172
  setVisible(true)
172
173
  setPosition(position)
@@ -174,7 +175,8 @@ export const Tooltip = React.memo(function Tooltip({trigger, desiredPlace = 'top
174
175
  }
175
176
 
176
177
  function mouseLeave(e) {
177
- if (!visible) return
178
+ if (!visible)
179
+ return
178
180
  setVisible(false)
179
181
  }
180
182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.11.6",
3
+ "version": "1.11.7",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",
@@ -86,7 +86,7 @@ export const TxOperationsList = React.memo(function TxOperationsList({
86
86
  }
87
87
  //hide some operations in large transactions to prevent interface hanging
88
88
  if (operations.length > 5) {
89
- operations = operations.subarray(0, 5)
89
+ operations = operations.slice(0, 5)
90
90
  opdiff = parsedTx.operations.length - operations.length
91
91
  }
92
92
  }