Topic: mdbTooltip should not display for zero-length strings
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>
Arkadiusz Idzikowski staff answered 2 years ago
@nubebytes These problems was fixed in v2.3.0, please upgrade your MDB5 Angular version.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- 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
Arkadiusz Idzikowski staff commented 2 years 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 pro premium commented 2 years 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 2 years ago
@nubebytes Thank you, we checked the popover component and it looks like it has the same bug.