Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sl-input autofocus doesn't work when input is contained in a sl-tab-panel #2216

Open
chrisjameslennon opened this issue Oct 15, 2024 · 1 comment
Labels
bug Things that aren't working right in the library.

Comments

@chrisjameslennon
Copy link

Describe the bug

sl-input autofocus doesn't work when input is contained in a sl-tab-panel

To Reproduce

Steps to reproduce the behavior:

  1. place a sl-tab-group and panel on the page, following the example given in the shoelace.style documentation
  2. place an sl-input in the tab group e..g <sl-input autofocus="true>
    3.load the page
  3. sl-input control doesn't receive the focus on page load

Browser / OS

  • OS: Ubuntu 24
  • Browser: Chrome
@chrisjameslennon chrisjameslennon added the bug Things that aren't working right in the library. label Oct 15, 2024
@KonnorRogers
Copy link
Collaborator

I believe this to be a problem with autofocus in general on our components, not necessarily within <sl-tab-group>.

#2000

reproduction:

https://codepen.io/paramagicdev/pen/bGXWoga?editors=1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants