Skip to content

Commit

Permalink
fix(QTabPanels): tab-panels 'transition' emit fires before transition…
Browse files Browse the repository at this point in the history
… ends (fix #17479). (#17489)

fix(ui): tab-panels 'transition' emit fires before transition ends.

Co-authored-by: Dimitris Tsiantaris <[email protected]>
  • Loading branch information
Dtsiantaris and Dimitris Tsiantaris authored Sep 9, 2024
1 parent 5d0b3dc commit c4a89e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/composables/private.use-panel/use-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ export default function () {
if (panelIndex.value !== index) {
panelIndex.value = index
emit('beforeTransition', newVal, oldVal)
nextTick(() => {
emit('transition', newVal, oldVal)
})
setTimeout(() => {
nextTick(() => {
emit('transition', newVal, oldVal)
})
}, props.transitionDuration);
}
})

Expand Down

0 comments on commit c4a89e3

Please sign in to comment.