Skip to content

fix: popover opening with new slot syntax and no title/content#840

Open
damirbogdanov wants to merge 1 commit intouiv-lib:1.xfrom
damirbogdanov:1.x
Open

fix: popover opening with new slot syntax and no title/content#840
damirbogdanov wants to merge 1 commit intouiv-lib:1.xfrom
damirbogdanov:1.x

Conversation

@damirbogdanov
Copy link
Contributor

Is this a bug fix or enhancement? - bug fix

Hello again! 👋

Once again, I appreciate all the hard work that's gone into this project. We're still happily using version 1. 😊

As we transitioned away from deprecated Vue slot syntax, we discovered some nuances with the popover component.

The Fix

The issue revolved around the isNotEmpty method. Previously, it checked for this.$slots.popover, which was causing problems with the latest Vue slot syntax. To address this, I've updated it to this.$scopedSlots.popover. This ensures that the popover functions as expected with the updated syntax. I've also added a unit test to cover this specific use case.

Is there a related issue?

None at this time.

Any Breaking Changes?

No breaking changes are introduced by this PR.

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