Topic: mdbTooltip should not display for zero-length strings

nubebytes premium asked 6 months ago


Expected behavior As per the documentation, mdbTooltip should not display an empty tooltip if the input is an empty string (https://mdbootstrap.com/docs/b5/angular/components/tooltips/)

  • Tooltips with zero-length mdbTooltip are never displayed.

Actual behavior Empty tooltips are displayed

Resources (screenshots, code snippets etc.)

  <span [mdbTooltip]="">
    No tienes Notificaciones sin leer
  </span>

enter image description here


Arkadiusz Idzikowski staff commented 6 months ago

@nubebytes Thank you for reporting the problem, I added this to our to-do list and we will fix this bug as soon as possible.


nubebytes premium commented 6 months ago

Thank you. By the way, the same thing happens with [mdbPopover]. Docs say "Zero-length mdbPopoverTitle and mdbPopover values will never show a popover.", but they do trigger an empty popover.


Arkadiusz Idzikowski staff commented 6 months ago

@nubebytes Thank you, we checked the popover component and it looks like it has the same bug.


Arkadiusz Idzikowski staff answered 5 months ago


@nubebytes These problems was fixed in v2.3.0, please upgrade your MDB5 Angular version.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • User: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 2.2.0
  • Device: Desktop
  • Browser: Chrome 102.0.5, Firefox 100.0.2
  • OS: Win10
  • Provided sample code: No
  • Provided link: Yes