-
Notifications
You must be signed in to change notification settings - Fork 294
fix(ui): bind attr to popover trigger #12183
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
| <template #trigger> | ||
| <NcButton variant="tertiary-no-background" :aria-label="t('mail', 'Help')"> | ||
| <template #trigger="{ attrs }"> | ||
| <NcButton variant="tertiary-no-background" :aria-label="t('mail', 'Help')" v-bind="attrs"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Why's that a custom button?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, it doesn't need attr binding.
When is used as a trigger, it injects required for a11y attributes to the button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted the changes for anc NcButton triggers
Signed-off-by: Christoph Wurst <[email protected]>
7c51f51 to
b17e04c
Compare
|
Thanks a lot 🥳 I was looking into that before, but I didn't find that one place where we were not using an NcButton 🙈 Finally that warning is gone 🎉 |
|
/backport to stable5.6 |
There was also an nc-vue-internal usage that caused the warning. It's fixed by nextcloud-libraries/nextcloud-vue#7975 |
Fixes
after page load
From https://nextcloud-vue-components.netlify.app/#/Components/NcPopover