Skip to content

Commit

Permalink
fix: popup shift to left in the first render when set strech property…
Browse files Browse the repository at this point in the history
… to trigger
  • Loading branch information
bbb169 committed Aug 16, 2023
1 parent 3e019ed commit 2c4b5c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ export function generateTrigger(
const rect = ele.getBoundingClientRect();
setTargetWidth(rect.width);
setTargetHeight(rect.height);
setInMotion(false); // makes onAlign calculating
}
};

Expand Down

0 comments on commit 2c4b5c7

Please sign in to comment.