Topic: Empty Popover Should Not Show
C-Contract priority asked 3 years ago
According to this article in the Jquery MDB documentation (not Angular), it says "Zero-length title and content values will never show a popover". However, this does not appear anywhere on the angular docs. I am hoping someone can tell me if there's a way to "not" show a popover if the popover text is empty, for angular popovers.
Resources (screenshots, code snippets etc.)
Current Code:
<div
class="md-form md-outline"
[hidden]="!displayField.visible"
[formGroup]="parentFormGroup"
>
<input
[id]="displayField.id"
[formControlName]="fieldName"
[attr.data-naaccr-item-number]="fieldName"
type="text"
length="10"
class="form-control"
mdbCharCounter
mdbInput
[mdbPopover]="displayField.tooltip"
placement="top"
[mdbPopoverHeader]="displayField.label"
triggers="focus"
/>
<label [for]="displayField.id">{{
displayField.isCritical ? "* " + displayField.label : displayField.label
}}</label>
</div>
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 9.4.0
- Device: desktop
- Browser: all
- OS: windows 10
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 3 years ago
Thank you for reporting this problem. I'm afraid there is no easy workaround for that in the current version. We will need to fix that on our end.
C-Contract priority commented 3 years ago
Okay good to know. Do any versions of angular have a way to do this?
Arkadiusz Idzikowski staff commented 3 years ago
@Zachary Bell This behavior was never implemented in the Angular version, we need to fix that in the next update.