+ {Array.from({length: 100}, (v, index) => (
+ <>
+
+
+ >
+ ))}
+
));
storiesOf('Components/Indicators/Avatar/Avatar Button', module)
diff --git a/modules/react/package.json b/modules/react/package.json
index 90d7d17f6f..2216bd5987 100644
--- a/modules/react/package.json
+++ b/modules/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-react",
- "version": "11.0.14",
+ "version": "11.0.18",
"description": "The parent module that contains all Workday Canvas Kit React components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
@@ -49,8 +49,8 @@
"@emotion/styled": "^11.6.0",
"@popperjs/core": "^2.5.4",
"@workday/canvas-colors-web": "^2.0.0",
- "@workday/canvas-kit-popup-stack": "^11.0.14",
- "@workday/canvas-kit-styling": "^11.0.14",
+ "@workday/canvas-kit-popup-stack": "^11.0.18",
+ "@workday/canvas-kit-styling": "^11.0.18",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.0",
"@workday/design-assets-types": "^0.2.8",
diff --git a/modules/react/select/lib/Select.tsx b/modules/react/select/lib/Select.tsx
index 1f7a579e8b..359df958cc 100644
--- a/modules/react/select/lib/Select.tsx
+++ b/modules/react/select/lib/Select.tsx
@@ -86,12 +86,14 @@ export const SelectInput = createSubcomponent(TextInput)({
React.useImperativeHandle(
elementRef,
() => {
- localRef.current!.focus = (options?: FocusOptions) => {
- textInputProps.ref.current!.focus(options);
- };
- localRef.current!.blur = () => {
- textInputProps.ref.current!.blur();
- };
+ if (localRef.current) {
+ localRef.current.focus = (options?: FocusOptions) => {
+ textInputProps.ref.current!.focus(options);
+ };
+ localRef.current.blur = () => {
+ textInputProps.ref.current!.blur();
+ };
+ }
return localRef.current!;
},
diff --git a/modules/react/select/spec/Select.spec.tsx b/modules/react/select/spec/Select.spec.tsx
index 1f8b5d2c54..c6070e3ad5 100644
--- a/modules/react/select/spec/Select.spec.tsx
+++ b/modules/react/select/spec/Select.spec.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {render, fireEvent} from '@testing-library/react';
+import {render, screen} from '@testing-library/react';
import {Select} from '../lib/Select';
@@ -14,7 +14,7 @@ describe('Select', () => {
describe('when rendered with a single child', () => {
it('should not throw an error', () => {
- const {getAllByRole} = render(
+ render(