Modal: selectorPrimaryFocus
doesn't work, when used together with focusTrap
#4088
Closed
1 of 2 tasks
Labels
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
I want to focus specific element by using provided
selectorPrimaryFocus
. But it doesn't work if I usefocusTrap
as well.Modal
custom element should be focused
close button was focused
initialFocus
from focus trap library doesn't have any arguments, which makesthis.initialFocus
to skip handlingselectorPrimaryFocus
(line#223)any browser
latest
Steps to reproduce the issue
focusTrap
to betrue
and refreshAdditional information
not related, but you have different refs assigned to the same variable:
ref={this.button}
inputref={this.button}
The text was updated successfully, but these errors were encountered: