Closed davidornelas11 closed 1 year ago
The #1177 PR issue turns out to be unrelated to this PR. Just for the record.
Do we need a way enable/disable focus onLoad? Have we identified the expected behavoir when there are 2 elements trying to focus on page load? See Tabbed Panel https://github.com/ASU/asu-unity-stack/blob/dev/packages/components-core/src/components/TabbedPanels/components/TabHeader.js#L22
@scott-williams-az Good point. I didn't realize that the tabbed panels were also capturing focus. And in the case of the Search Page component, it's using tabbed panels and the search focus...
Now that I think about it, I may have changed the tabbed panels from focus
to scroll into view
(the code to focus
on the tab might actually be unused, if it is we can remove it)
Sorry for the back and forth, we are setting focus on the tabbed panels https://github.com/ASU/asu-unity-stack/blob/dev/packages/components-core/src/components/TabbedPanels/index.js#L62
I think that ought to work, and tests out locally.
Description
Focus cursor in search bar on page load
Links
Checklist
yarn install
&yarn build
Browsers
Images