Skip to content

Commit 02b573d

Browse files
committed
[frontend] fix afterel transitioning wronng
1 parent fe3b110 commit 02b573d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/tabs.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ export const Tabs: Component<
294294
component.style.transform = `translateX(${tabPos}px)`;
295295
if (transition && tab.dragpos == -1 && tab.pos != tabPos) {
296296
component.style.transition = `transform ${TAB_TRANSITION}`;
297+
this.afterEl.style.transition = `transform ${TAB_TRANSITION}`;
297298
transitioningTabs++;
298299
}
299300
dragpos = Math.max(dragpos, tab.dragpos + width + TAB_PADDING);
@@ -371,6 +372,8 @@ export const Tabs: Component<
371372
if (transitioningTabs == 0) {
372373
this.tabs = this.tabs;
373374
}
375+
376+
this.afterEl.style.transition = "";
374377
};
375378

376379
return (

0 commit comments

Comments
 (0)