@energysage/es-ds-components 3.7.0 → 3.7.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.7.1](https://github.com/EnergySage/es-ds/compare/es-ds-components-v3.7.0...es-ds-components-v3.7.1) (2025-09-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * account for object array in isSelected ([#1663](https://github.com/EnergySage/es-ds/issues/1663)) ([d34ce8a](https://github.com/EnergySage/es-ds/commit/d34ce8a0b2935cfe9621a54b85cac88f95a5a314))
9
+
3
10
  ## [3.7.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v3.6.2...es-ds-components-v3.7.0) (2025-09-04)
4
11
 
5
12
 
@@ -33,7 +33,10 @@ const isInputClicked = ref(false);
33
33
  const isLabelClicked = ref(false);
34
34
  const isDisabled = computed(() => props.disabled || props.options.length === 0);
35
35
 
36
- const isSelected = (option: any) => option === props.modelValue;
36
+ const isSelected = (option: any) => {
37
+ const compareOption = typeof option === 'object' ? option.value : option;
38
+ return compareOption === props.modelValue;
39
+ };
37
40
 
38
41
  const id = useId();
39
42
  const labelId = useId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energysage/es-ds-components",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "An EnergySage Vue component library",