I'm upgrading an Angular project from 14 to 15, including ng-bootstrap from 13.1.1 to 14.1.0.
For the most part, the upgrade has gone smoothly, except for an issue around the tooltip component in ng-bootstrap. I've created a skinnied-down Stackblitz to demonstrate the problem:
https://stackblitz.com/edit/angular-fagut4
The issue appears to be this. If I create a component (standalone or otherwise) that has an ngbTooltip call inside of it, like this very simple example:
import { Component, Input } from '@angular/core';
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngbd-tooltip-test',
standalone: true,
imports: [NgbTooltipModule],
template: `
<span [ngbTooltip]="tooltipText">HOVER ME</span>`,
})
export class NgbdTooltipTest {
@Input() tooltipText!: string;
}
...and then I try call that component from a parent, like this:
before<ngbd-tooltip-test tooltipText="here is a tooltip"></ngbd-tooltip-test
>text after
...then on hover, the after text is wrapping to the next line. This behavior didn't happen in Angular 14/ng-bootstrap 13.1.1.
The Stackblitz example has a root element of span, but I have changed it to both a and button, and I'm seeing the same results.
Either I'm missing something really silly here, or this is just broken now. Anybody else experiencing this?
Thanks in advance!