Skip to content

Commit 238ab81

Browse files
author
MargeBot
committed
Merge branch 'IDTEAM-fix-fieldbox-reflow' into 'main'
[IDTEAM] Fix `fieldBox` reflows See merge request web/clients!18330
2 parents 5e2bf78 + 0e2a4a9 commit 238ab81

File tree

1 file changed

+3
-3
lines changed
  • applications/pass-extension/src/app/content/services/handles

1 file changed

+3
-3
lines changed

applications/pass-extension/src/app/content/services/handles/icon.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export const createFieldIconHandle = ({ field, elements }: CreateIconOptions): F
6060
const reposition = (reflow: boolean = false) => {
6161
cancelReposition();
6262

63-
repositioning.request = requestAnimationFrame(() => {
64-
const inputBox = field.getBoxElement({ reflow });
65-
const form = field.getFormHandle().element;
63+
const inputBox = field.getBoxElement({ reflow });
64+
const form = field.getFormHandle().element;
6665

66+
repositioning.request = requestAnimationFrame(() => {
6767
animatePositionChange({
6868
onAnimate: (request) => (repositioning.animate = request),
6969
get: () => field.element.getBoundingClientRect(),

0 commit comments

Comments
 (0)