Skip to content

Commit

Permalink
style: update property name
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Feb 4, 2021
1 parent 3435ae9 commit b0925fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/draft/esl-select/core/esl-select-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ESLSelectText extends ESLBaseElement {
public static readonly is = 'esl-select-text';

@attr() public emptyText: string;
@boolAttr() public empty: boolean;
@boolAttr({name: 'empty'}) public isEmpty: boolean;

protected $container: HTMLDivElement;
protected $rest: HTMLElement;
Expand Down Expand Up @@ -85,7 +85,7 @@ export class ESLSelectText extends ESLBaseElement {
public render() {
if (!this.model) return;
const selected = this.model.selected;
this.empty = !selected.length;
this.isEmpty = !selected.length;
this.applyItems(selected.map((item) => item.text));
}

Expand Down

0 comments on commit b0925fa

Please sign in to comment.