@crowdfarming/oliva-ds 1.98.0 → 1.99.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8197,7 +8197,7 @@ class TooltipDirective {
|
|
|
8197
8197
|
}
|
|
8198
8198
|
this.hide();
|
|
8199
8199
|
}
|
|
8200
|
-
// Touch: tap toggles the tooltip;
|
|
8200
|
+
// Touch: tap toggles the tooltip; scroll closes it.
|
|
8201
8201
|
onClick() {
|
|
8202
8202
|
if (this.supportsHover) {
|
|
8203
8203
|
return;
|
|
@@ -8216,18 +8216,12 @@ class TooltipDirective {
|
|
|
8216
8216
|
const positionStrategy = this.positionBuilder
|
|
8217
8217
|
.flexibleConnectedTo(this.elementRef)
|
|
8218
8218
|
.withPositions(this.getPositions());
|
|
8219
|
-
// On touch: a transparent backdrop closes on outside tap; close on scroll.
|
|
8220
8219
|
this.overlayRef = this.overlay.create({
|
|
8221
8220
|
positionStrategy,
|
|
8222
8221
|
scrollStrategy: this.overlay.scrollStrategies.close(),
|
|
8223
|
-
hasBackdrop: !this.supportsHover,
|
|
8224
|
-
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
8225
8222
|
});
|
|
8226
8223
|
// Scroll-to-close detaches (not disposes); reset our ref so the next tap re-opens.
|
|
8227
8224
|
this.overlayRef.detachments().subscribe(() => this.disposeOverlay());
|
|
8228
|
-
if (!this.supportsHover) {
|
|
8229
|
-
this.overlayRef.backdropClick().subscribe(() => this.hide());
|
|
8230
|
-
}
|
|
8231
8225
|
const tooltipPortal = new ComponentPortal(TooltipComponent);
|
|
8232
8226
|
const componentRef = this.overlayRef.attach(tooltipPortal);
|
|
8233
8227
|
componentRef.instance.text = this.libTooltip;
|