8000 Vue props type error for BPopover if using HTMLElement · Issue #1455 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content
Vue props type error for BPopover if using HTMLElement #1455
Closed
@asika32764

Description

@asika32764

Describe the bug

If the <BPopover> use target or reference bind a HTMLButtonElement, it will show this warning in console.

screenshot 2023-09-15 下午7 20 50

It's seems the type declaration in source code is correct

screenshot 2023-09-15 下午7 21 09

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0