File tree Expand file tree Collapse file tree
projects/igniteui-angular/combo/src/combo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,15 +66,17 @@ export class IgxComboItemComponent extends IgxDropDownItemComponent {
6666 * @hidden
6767 * @internal
6868 */
69- public get disableTransitions ( ) {
70- return this . comboAPI . disableTransitions ;
69+ public override ngDoCheck ( ) : void {
70+ // Sync state from services once per CD cycle so template bindings return stable field values
71+ this . _selected = ! this . isHeader && this . value != null && this . comboAPI . is_item_selected ( this . itemID ) ;
72+ this . _disableTransitions = this . comboAPI . disableTransitions ;
7173 }
7274
7375 /**
7476 * @hidden
7577 */
7678 public override get selected ( ) : boolean {
77- return this . comboAPI . is_item_selected ( this . itemID ) ;
79+ return this . _selected ;
7880 }
7981
8082 public override set selected ( value : boolean ) {
@@ -84,6 +86,16 @@ export class IgxComboItemComponent extends IgxDropDownItemComponent {
8486 this . _selected = value ;
8587 }
8688
89+ /**
90+ * @hidden
91+ * @internal
92+ */
93+ public get disableTransitions ( ) {
94+ return this . _disableTransitions ;
95+ }
96+
97+ private _disableTransitions = false ;
98+
8799 /**
88100 * @hidden
89101 */
You can’t perform that action at this time.
0 commit comments