Closed
Description
Describe the bug
If the <BPopover>
use target
or reference
bind a HTMLButtonElement, it will show this warning in console.
It's seems the type declaration in source code is correct
I think maybe it is that Vue striped the HTMLElement from props type.
But use function works
<BPopover :target="() => button">
Reproduction
https://stackblitz.com/edit/github-heccuu?file=src%2FApp.vue
Open Browser console can see the warning
System Info
System:
OS: macOS 13.4.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 174.09 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node
Yarn: 1.22.15 - ~/.yarn/bin/yarn
npm: 8.3.0 - ~/.nvm/versions/node/v14.18.2/bin/npm
pnpm: 8.7.4 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 116.0.5845.187
Safari: 16.5.1
Safari Technology Preview: 16.4
Used Package Manager
yarn
Validations
- Have tested with the latest version. This is still alpha version and sometime things change rapidly.
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.