Skip to content
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

NavTabs: Avoid recursion when 'active tab' contains macros #2751

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Aug 2, 2023

If the "active tab" property contains macros, like $(TAB=0) to allow an optional macro to configure the initially active tab, then the expansion of that macro resulted in infinite recursion because the value of the active tab is used to construct the effective macros, which are fetched to resolve $(TAB) and so on.

Fixed by expanding the "active" property using parent macros.

@kasemir kasemir merged commit b5171e2 into master Aug 2, 2023
2 checks passed
@kasemir kasemir deleted the nav_tab_macros branch August 2, 2023 16:13
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