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

fix(TopBar): provide optional button text via new slot syntax #2015

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Mar 19, 2024

This is an issue on NcButton side, but can also be fixed here. Passing conditional content always works better with explicit no-passing slot completely.

It is an old known issue in Vue 2 with deprecated slot syntax and checking this.$slots. Because there is a content passed via old slot syntax (not using v-slot directive), it handles $slots differently. It has icon rendering function in $scopedSlots, but the rendering result does not exist in $slots.

Unfortunately, I don't remember the Vue 2 issue link...

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added bug Something isn't working 3. to review Waiting for reviews labels Mar 19, 2024
@ShGKme ShGKme requested a review from Chartman123 March 19, 2024 22:05
@ShGKme ShGKme self-assigned this Mar 19, 2024
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that this fixes it :) Thank you very much @ShGKme!

@Chartman123
Copy link
Collaborator

/backport to stable3

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Mar 19, 2024
@Chartman123 Chartman123 merged commit 9020058 into main Mar 19, 2024
43 checks passed
@Chartman123 Chartman123 deleted the fix/1699/navigation-icons-disappear branch March 19, 2024 22:11
@backportbot backportbot bot removed the backport-request Pending backport by the backport-bot label Mar 19, 2024
@Chartman123 Chartman123 added this to the 4.2 milestone Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigation icons disappear on mobile after showing settings sidebar
2 participants