Skip to content

(maint) avoid calling "onSelect" when the tab is already selected #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jonathannewman
Copy link

If the tab is already selected, there is no reason to call "onSelect" This changes the logic for the callback to avoid calling if the tab is selected. The tests were updated to agree with that expected behavior.

If the tab is already selected, there is no reason to call "onSelect"
This changes the logic for the callback to avoid calling if the
tab is selected. The tests were updated to agree with that expected
behavior.
@jonathannewman jonathannewman requested a review from a team as a code owner June 13, 2025 18:09
@jonathannewman
Copy link
Author

@Lukeaber This fixes that issue I mentioned.

@jonathannewman jonathannewman merged commit eda2b42 into puppetlabs:main Jun 16, 2025
11 checks passed
@jonathannewman jonathannewman deleted the maint/main/avoid-unexpected-selection-updates branch June 16, 2025 15:21
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.

2 participants