Skip to content

fix(tablist): fix tablist timer not cleared on unmount#8531

Open
greenyc wants to merge 1 commit into
primefaces:masterfrom
greenyc:fix/tablist_timer_not_cleared_on_unmount
Open

fix(tablist): fix tablist timer not cleared on unmount#8531
greenyc wants to merge 1 commit into
primefaces:masterfrom
greenyc:fix/tablist_timer_not_cleared_on_unmount

Conversation

@greenyc
Copy link
Copy Markdown

@greenyc greenyc commented Apr 10, 2026

The mounted hook in TabList schedules a setTimeout to update the ink bar after 150ms.
If the component unmounts before that timer fires, the callback runs against a destroyed instance, causing errors.

This fix stores the timer ID in this.mountTimer and calls clearTimeout in beforeUnmount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant