We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98e8b21 + ec914cf commit 2cfb6f1Copy full SHA for 2cfb6f1
packages/seed-realm/components/sort.gts
@@ -113,7 +113,9 @@ export class SortMenu extends GlimmerComponent<SortMenuSignature> {
113
return new MenuItem(option.displayName, 'action', {
114
action: () => this.args.onSort(option),
115
icon: option.sort?.[0].direction === 'desc' ? ArrowDown : ArrowUp,
116
- selected: option.displayName === this.args.selected.displayName,
+ selected:
117
+ option.displayName === this.args.selected.displayName &&
118
+ option.sort?.[0].direction === this.args.selected.sort?.[0].direction,
119
});
120
121
}
0 commit comments