Skip to content

Commit

Permalink
fix(select): error when use custom trigger (#UIM-398) (#439)
Browse files Browse the repository at this point in the history
8x
  • Loading branch information
lskramarov authored and pimenovoleg committed Mar 19, 2020
1 parent 5633950 commit b278ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mosaic/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ export class McSelect extends McSelectMixinBase implements
}

calculateHiddenItems(): void {
if (this.empty || !this.multiple) { return; }
if (this.customTrigger || this.empty || !this.multiple) { return; }

let visibleItems: number = 0;
const totalItemsWidth = this.getTotalItemsWidthInMatcher();
Expand Down
2 changes: 1 addition & 1 deletion packages/mosaic/tree-select/tree-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ export class McTreeSelect extends McTreeSelectMixinBase implements
}

calculateHiddenItems() {
if (this.empty || !this.multiple) { return; }
if (this.customTrigger || this.empty || !this.multiple) { return; }

let visibleItems: number = 0;
const totalItemsWidth = this.getTotalItemsWidthInMatcher();
Expand Down

0 comments on commit b278ccf

Please sign in to comment.