Skip to content

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 25, 2024

☑️ Resolves

Though it must be fine in Vue 3.3+, for some reason, sometimes computed in provide/inject is not reactive.

It works in docs, in server, in Talk. But it doesn't work in Text...

We had a similar issue with provide/inject in NcSidebarTabs in past.

@raimund-schluessler I also included a small fix with internalShown based on your comment somewhere

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

@ShGKme ShGKme added bug Something isn't working 3. to review Waiting for reviews feature: popover Related to the popovermenu component accessibility Making sure we design for the widest range of people possible, including those who have disabilities labels Jan 25, 2024
@ShGKme ShGKme self-assigned this Jan 25, 2024
@ShGKme ShGKme force-pushed the fix/nc-popover--provide-reactivity branch from 797084b to 7e1368c Compare January 25, 2024 21:52
@ShGKme
Copy link
Contributor Author

ShGKme commented Jan 26, 2024

Maybe the issue is because Viewer is using not the latest Vue patch

Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

works but not that nice @raimund-schluessler probably do not port to vue3(?)

@ShGKme
Copy link
Contributor Author

ShGKme commented Jan 26, 2024

works but not that nice @raimund-schluessler probably do not port to vue3(?)

Getter function will work in Vue 3 too. Or what do you mean?

@susnux
Copy link
Contributor

susnux commented Jan 26, 2024

Getter function will work in Vue 3 too. Or what do you mean?

It also works without in Vue3

@susnux susnux merged commit 8e95526 into master Jan 26, 2024
@susnux susnux deleted the fix/nc-popover--provide-reactivity branch January 26, 2024 22:07
@susnux susnux mentioned this pull request Jan 26, 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 accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working feature: popover Related to the popovermenu component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants