Skip to content

Commit 158dacb

Browse files
committed
fix: no disabled styling for disabled dropdown items
Signed-off-by: anemonetea <[email protected]>
1 parent 9c21063 commit 158dacb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dropdown/list/dropdown-list.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ import { ScrollCustomEvent } from "./scroll-custom-event.interface";
6767
[attr.aria-selected]="item.selected"
6868
[id]="getItemId(i)"
6969
[attr.title]=" showTitles ? item.content : null"
70+
[attr.disabled]="item.disabled"
7071
[ngClass]="{
7172
'bx--list-box__menu-item--active': item.selected,
72-
'bx--list-box__menu-item--highlighted': highlightedItem === getItemId(i),
73-
disabled: item.disabled
73+
'bx--list-box__menu-item--highlighted': highlightedItem === getItemId(i)
7474
}">
7575
<div
7676
#listItem
@@ -277,7 +277,6 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
277277
this.updateIndex();
278278
this.setupFocusObservable();
279279
setTimeout(() => {
280-
if (this.getSelected() !== []) { return; }
281280
this.doEmitSelect();
282281
});
283282
}

0 commit comments

Comments
 (0)