Description
Description
There is a change with setFocus in beta.94. The call itself works fine, but in the past I could just do this:
componentDidLoad(): void {
this.panelNode.setFocus("back-button");
}
This no longer works. I have to add the setFocus() call into a timeout now. Not sure though what a reliable wait time is.
This is the case both for panel or flow-item, or if I want to set the focus on a close button I add myself. No difference there.
From @driskull
I think we can improve this in the future by setting up a promise internally and waiting for the component to load before resolving the promise and then setFocus would wait for that promise first.
But I think we can wait for the component to load before focusing internally.
Acceptance Criteria
setFocus should not require a timeout in componentDidLoad()
Relevant Info
No response
Which Component
panel, flow-item, ...
Example Use Case
No response
Esri team
N/A