Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
fix: keep value-list-item selected in sync with pick-list-item (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull authored Dec 10, 2019
1 parent de2aa78 commit 100eaf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/calcite-filter/calcite-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class CalciteFilter {
<label>
<input
type="text"
value=""
placeholder={this.textPlaceholder}
onInput={this.inputHandler}
aria-label={this.textLabel || TEXT.filterLabel}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export class CalciteValueListItem {
this.handleActivated = false;
};

handleSelectChange = (event: CustomEvent) => {
this.selected = event.detail.selected;
};

// --------------------------------------------------------------------------
//
// Render Methods
Expand Down Expand Up @@ -148,6 +152,7 @@ export class CalciteValueListItem {
metadata={this.metadata}
textLabel={this.textLabel}
textDescription={this.textDescription}
onCalciteListItemChange={this.handleSelectChange}
value={this.value}
>
<slot name="secondaryAction" slot="secondaryAction" />
Expand Down

0 comments on commit 100eaf0

Please sign in to comment.