Topic: Bug: Tooltips with zero-length "tip"-slot values are never displayed

waterandwind priority asked 3 months ago

Expected behavior

"Tooltips with zero-length tip slot values are never displayed."


Actual behavior

This code

<MDBTooltip v-model='showTooltip'>

  <template #reference>

  <template #tip></template>

causes a small box that is displayed even if the tip length is zero.

Resources (screenshots, code snippets etc.)

enter image description here

Bartosz Cylwik staff answered 3 months ago

Hi! What is the use case for an empty #tip template? Adding some content dynamicaly later?

You can try to toggle display styles for the tooltip when it should not be visible. I have prepared some basic demo for that here:

waterandwind priority commented 2 months ago

Correct, there is content that is added dynamically later. Thanks for the snippet, very kind of you. Marked as complete.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 5.0.0
  • Device: PC
  • Browser: Brave (Chrome)
  • OS: Windows 10
  • Provided sample code: Yes
  • Provided link: Yes