Skip to content

Get 'initialFocus' error when using TearSheetSmall with focus-trap-react 8.8.1 installed #1109

@jillyj

Description

@jillyj

Bug -

Got Uncaught Error: initialFocus was specified but was not a node, or did not return a node using TearSheetSmall with focus-trap-react 8.8.1 installed.

Description

Screenshot:
image

Expected behavior

No initialFocus error happened.

Actual behavior

Steps for reproducing

https://codesandbox.io/s/silent-architecture-2dq4b?file=/src/index.js
In this codeSandbox, click the button to open the tearSheet and you can see the initialFocus error.

Affected browsers

What's my browser? and browserl.ist supported browsers

  • Chrome 94 on MacOSX11.6
  • Firefox 78 on MacOSX11.6

Optional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions