We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! Here's the reproducer:
<!DOCTYPE html> <html lang="en" class="sl-theme-dark"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Slash code</title> <script type="module"> import "@shoelace-style/shoelace"; import '@shoelace-style/shoelace/dist/themes/dark.css'; import {html, LitElement} from 'lit'; class Debug extends LitElement { render() { return html`<sl-input autofocus></sl-input>`; } } customElements.define('debug-page', Debug); </script> </head> <body> <debug-page></debug-page> </body> </html>
When opened in Firefox or Safari, the input is not focused. It works as expected in Chrome.
On top of that, if I try to focus the input manually, I get another error:
firstUpdated() { this.shadowRoot.querySelector('sl-input').focus(); }
results in TypeError: this.input is null inside SlInput. This occurs on all three browsers.
TypeError: this.input is null
SlInput
The text was updated successfully, but these errors were encountered:
Publicly reproduced using nothing but Shoelace from a CDN:
Confirmed as working ✔️ on Windows (Edge/Chrome 124); not working ❌ on Windows (Firefox 125), macOS (Safari 17.4)
Sorry, something went wrong.
@KonnorRogers do you mind looking into this one as part of the FACE work for Web Awesome?
KonnorRogers
No branches or pull requests
Hi! Here's the reproducer:
When opened in Firefox or Safari, the input is not focused. It works as expected in Chrome.
On top of that, if I try to focus the input manually, I get another error:
results in
TypeError: this.input is null
insideSlInput
. This occurs on all three browsers.Browser / OS
The text was updated successfully, but these errors were encountered: