Skip to content
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

Issues with BTooltip on Vue3 + @vue/compat #7151

Open
fifzteen opened this issue May 19, 2023 · 0 comments
Open

Issues with BTooltip on Vue3 + @vue/compat #7151

fifzteen opened this issue May 19, 2023 · 0 comments

Comments

@fifzteen
Copy link

Describe the bug

Reproduction here:
https://stackblitz.com/edit/vitejs-vite-p8sht6

1. Reactivity in default slot doesn't work

in App.vue, value is ref object v-model binded to b-form-input in tooltip (A) and out of tooltip (B).

  • When inputs on (A), the value applies also on (B).

スクリーンショット 2023-05-19 15 39 27

  • When inputs on (B), (A) has no changes.

スクリーンショット 2023-05-19 15 40 16

2. Styles defined on custom-class are not applied

<template>
  <b-tooltip custom-class="custom-tip">...</b-tooltip>
</template>

<style scoped>
.custom-tip :deep(.tooltip-inner) {
  background-color: #ffffff;
  border: 1px solid #aaaaaa;
}
.custom-tip :deep(.arrow)::before {
  border-top-color: #aaaaaa;
}
</style>
expected works now
スクリーンショット 2023-05-19 15 43 17 スクリーンショット 2023-05-19 15 41 57

Probably, It's because data attribute of scopeId isn't correctly on wrapper div.

// OK
<div data-v-{hash:8}></div>
// NG (now)
<div data-v-app></div>

3. Wrapper div elements still exists even if tooltip hidden

Increases div everytime tooltip shown

increases_dev

Steps to reproduce the bug

https://stackblitz.com/edit/vitejs-vite-p8sht6

Versions

Libraries:

  • BootstrapVue: 2.23.1
  • Bootstrap: 4.#.#
  • Vue: 3.3.4
  • @vue/compat: 3.3.4

Environment:

  • Device: Mac
  • OS: macOS Monterey
  • Browser: Chrome
  • Version: 113.0.5672.92
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

No branches or pull requests

1 participant