@rc-component/trigger 1.6.0 → 1.6.1

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.
@@ -248,7 +248,7 @@ export default function useAlign(open, popupEle, target, placement, builtinPlace
248
248
 
249
249
  // Bottom to Top
250
250
  if (needAdjustY && popupPoints[0] === 't' && nextPopupBottom > visibleArea.bottom) {
251
- var tmpNextOffsetY;
251
+ var tmpNextOffsetY = nextOffsetY;
252
252
  if (sameTB) {
253
253
  tmpNextOffsetY -= popupHeight - targetHeight;
254
254
  } else {
@@ -262,7 +262,7 @@ export default function useAlign(open, popupEle, target, placement, builtinPlace
262
262
 
263
263
  // Top to Bottom
264
264
  if (needAdjustY && popupPoints[0] === 'b' && nextPopupY < visibleArea.top) {
265
- var _tmpNextOffsetY;
265
+ var _tmpNextOffsetY = nextOffsetY;
266
266
  if (sameTB) {
267
267
  _tmpNextOffsetY += popupHeight - targetHeight;
268
268
  } else {
@@ -284,7 +284,7 @@ export default function useAlign(open, popupEle, target, placement, builtinPlace
284
284
 
285
285
  // Right to Left
286
286
  if (needAdjustX && popupPoints[1] === 'l' && nextPopupRight > visibleArea.right) {
287
- var tmpNextOffsetX;
287
+ var tmpNextOffsetX = nextOffsetX;
288
288
  if (sameLR) {
289
289
  tmpNextOffsetX -= popupWidth - targetWidth;
290
290
  } else {
@@ -298,7 +298,7 @@ export default function useAlign(open, popupEle, target, placement, builtinPlace
298
298
 
299
299
  // Left to Right
300
300
  if (needAdjustX && popupPoints[1] === 'r' && nextPopupX < visibleArea.left) {
301
- var _tmpNextOffsetX;
301
+ var _tmpNextOffsetX = nextOffsetX;
302
302
  if (sameLR) {
303
303
  _tmpNextOffsetX += popupWidth - targetWidth;
304
304
  } else {
@@ -256,7 +256,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
256
256
 
257
257
  // Bottom to Top
258
258
  if (needAdjustY && popupPoints[0] === 't' && nextPopupBottom > visibleArea.bottom) {
259
- var tmpNextOffsetY;
259
+ var tmpNextOffsetY = nextOffsetY;
260
260
  if (sameTB) {
261
261
  tmpNextOffsetY -= popupHeight - targetHeight;
262
262
  } else {
@@ -270,7 +270,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
270
270
 
271
271
  // Top to Bottom
272
272
  if (needAdjustY && popupPoints[0] === 'b' && nextPopupY < visibleArea.top) {
273
- var _tmpNextOffsetY;
273
+ var _tmpNextOffsetY = nextOffsetY;
274
274
  if (sameTB) {
275
275
  _tmpNextOffsetY += popupHeight - targetHeight;
276
276
  } else {
@@ -292,7 +292,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
292
292
 
293
293
  // Right to Left
294
294
  if (needAdjustX && popupPoints[1] === 'l' && nextPopupRight > visibleArea.right) {
295
- var tmpNextOffsetX;
295
+ var tmpNextOffsetX = nextOffsetX;
296
296
  if (sameLR) {
297
297
  tmpNextOffsetX -= popupWidth - targetWidth;
298
298
  } else {
@@ -306,7 +306,7 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
306
306
 
307
307
  // Left to Right
308
308
  if (needAdjustX && popupPoints[1] === 'r' && nextPopupX < visibleArea.left) {
309
- var _tmpNextOffsetX;
309
+ var _tmpNextOffsetX = nextOffsetX;
310
310
  if (sameLR) {
311
311
  _tmpNextOffsetX += popupWidth - targetWidth;
312
312
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/trigger",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "base abstract trigger component for react",
5
5
  "engines": {
6
6
  "node": ">=8.x"