@workday/canvas-kit-react 10.3.49 → 10.3.50

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.
@@ -44,7 +44,7 @@ export const useComboboxMenuItem = composeHooks(
44
44
  event.preventDefault();
45
45
  };
46
46
 
47
- const selected = model.state.cursorId === id;
47
+ const selected = model.state.selectedIds[0] === id;
48
48
 
49
49
  return {
50
50
  role: 'option',
@@ -30,7 +30,7 @@ exports.useComboboxMenuItem = common_1.composeHooks(common_1.createElemPropsHook
30
30
  // prevent focus changes
31
31
  event.preventDefault();
32
32
  };
33
- const selected = model.state.cursorId === id;
33
+ const selected = model.state.selectedIds[0] === id;
34
34
  return {
35
35
  role: 'option',
36
36
  'aria-selected': selected || undefined,
@@ -24,7 +24,7 @@ export const useComboboxMenuItem = composeHooks(createElemPropsHook(useMenuModel
24
24
  // prevent focus changes
25
25
  event.preventDefault();
26
26
  };
27
- const selected = model.state.cursorId === id;
27
+ const selected = model.state.selectedIds[0] === id;
28
28
  return {
29
29
  role: 'option',
30
30
  'aria-selected': selected || undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "10.3.49",
3
+ "version": "10.3.50",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -49,8 +49,8 @@
49
49
  "@emotion/styled": "^11.6.0",
50
50
  "@popperjs/core": "^2.5.4",
51
51
  "@workday/canvas-colors-web": "^2.0.0",
52
- "@workday/canvas-kit-popup-stack": "^10.3.49",
53
- "@workday/canvas-kit-styling": "^10.3.49",
52
+ "@workday/canvas-kit-popup-stack": "^10.3.50",
53
+ "@workday/canvas-kit-styling": "^10.3.50",
54
54
  "@workday/canvas-system-icons-web": "^3.0.0",
55
55
  "@workday/canvas-tokens-web": "^1.0.0",
56
56
  "@workday/design-assets-types": "^0.2.8",
@@ -68,5 +68,5 @@
68
68
  "@workday/canvas-accent-icons-web": "^3.0.0",
69
69
  "@workday/canvas-applet-icons-web": "^2.0.0"
70
70
  },
71
- "gitHead": "ffada361c9cc009488b6860940c7415dfbacba94"
71
+ "gitHead": "419f977a18c6952dca36a9490b4eb2c3de9d1309"
72
72
  }