Skip to content

Commit

Permalink
fix(list-item): reflect the sortHandleOpen property (#11323)
Browse files Browse the repository at this point in the history
**Related Issue:** #11322

## Summary

- reflect property
- add test
  • Loading branch information
driskull authored Jan 16, 2025
1 parent 4dde26f commit c5d3f97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ describe("calcite-list-item", () => {
propertyName: "iconFlipRtl",
defaultValue: undefined,
},
{
propertyName: "sortHandleOpen",
defaultValue: false,
},
]);
});

Expand All @@ -82,6 +86,10 @@ describe("calcite-list-item", () => {
propertyName: "unavailable",
value: true,
},
{
propertyName: "sortHandleOpen",
value: true,
},
]);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class ListItem
@property() setSize: number = null;

/** When `true`, displays and positions the sort handle. */
@property() sortHandleOpen = false;
@property({ reflect: true }) sortHandleOpen = false;

/** When `true`, the component's content appears inactive. */
@property({ reflect: true }) unavailable = false;
Expand Down

0 comments on commit c5d3f97

Please sign in to comment.