Skip to content

Commit 30672d7

Browse files
authored
fix(module:select): selected item with long label displayed in ellipsis (#9316)
1 parent 7a2d3b6 commit 30672d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/select/select-item.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
2626
template: `
2727
<ng-container *nzStringTemplateOutlet="contentTemplateOutlet; context: templateOutletContext">
2828
@if (displayLabelInHtml) {
29-
<div [class.ant-select-selection-item-content]="deletable" [innerHTML]="label"></div>
29+
<span [class.ant-select-selection-item-content]="deletable" [innerHTML]="label"></span>
3030
} @else {
31-
<div [class.ant-select-selection-item-content]="deletable">{{ label }}</div>
31+
<span [class.ant-select-selection-item-content]="deletable">{{ label }}</span>
3232
}
3333
</ng-container>
3434
@if (deletable && !disabled) {

0 commit comments

Comments
 (0)