@brightspace-ui/core 3.176.3 → 3.176.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,9 @@ The sort menu allows the user to adjust the sort order of data in a list.
9
9
  import '@brightspace-ui/core/components/sorting/sort-item.js';
10
10
  </script>
11
11
  <d2l-sort>
12
- <d2l-sort-item text="Most Relevant" selected></d2l-sort-item>
13
- <d2l-sort-item text="Recently Updated"></d2l-sort-item>
14
- <d2l-sort-item text="Highest Rated"></d2l-sort-item>
12
+ <d2l-sort-item text="Most Relevant" value="relevant" selected></d2l-sort-item>
13
+ <d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
14
+ <d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
15
15
  </d2l-sort>
16
16
  ```
17
17
 
@@ -78,7 +78,7 @@ class Sort extends FocusMixin(LocalizeCoreElement(LitElement)) {
78
78
  if (this._selectedItemValue === e.target.value) return;
79
79
 
80
80
  this._selectedItemText = e.target.text;
81
- this._selectedItemValue = e.target;
81
+ this._selectedItemValue = e.target.value;
82
82
  this.dispatchEvent(new CustomEvent(
83
83
  'd2l-sort-change', {
84
84
  detail: { value: e.detail.value }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.176.3",
3
+ "version": "3.176.4",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",