Skip to content

Commit

Permalink
fix(value-list-item): Remove undocumented properties from the Host el…
Browse files Browse the repository at this point in the history
…ement. #2059
  • Loading branch information
driskull committed Apr 27, 2021
1 parent ba46cb0 commit 0a8eac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export class CalciteValueListItem {

pickListItem: HTMLCalcitePickListItemElement = null;

guid = `calcite-value-list-item-${guid()}`;

// --------------------------------------------------------------------------
//
// Public Methods
Expand Down Expand Up @@ -198,8 +196,10 @@ export class CalciteValueListItem {
}

render(): VNode {
const id = this.el.id || `calcite-value-list-item-${guid()}`;

return (
<Host data-id={this.guid}>
<Host id={id}>
{this.renderHandle()}
<calcite-pick-list-item
description={this.description}
Expand Down
1 change: 1 addition & 0 deletions src/components/calcite-value-list/calcite-value-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export class CalciteValueList<
}

this.sortable = Sortable.create(this.el, {
dataIdAttr: "id",
handle: `.${CSS.handle}`,
draggable: "calcite-value-list-item",
group: this.group,
Expand Down

0 comments on commit 0a8eac9

Please sign in to comment.