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

Setting openFocus to null does not remove autofocus in dialogs #1220

Open
ilittlebig opened this issue Jun 3, 2024 · 0 comments
Open

Setting openFocus to null does not remove autofocus in dialogs #1220

ilittlebig opened this issue Jun 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ilittlebig
Copy link

Describe the bug

Set openFocus to null in a dialog builder component, and notice how the autofocus is still present.
Setting closeFocus to null works as intended.

Reproduction

  1. Set openFocus to null in a dialog builder component
  2. Notice the autofocus is still there

Logs

No response

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 3.20 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.7.3 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 125.0.6422.142
    Safari: 17.5
  npmPackages:
    @melt-ui/svelte: ^0.76.0 => 0.76.3 
    @sveltejs/kit: ^2.0.0 => 2.5.10 
    svelte: ^4.2.7 => 4.2.17

Severity

annoyance

@ilittlebig ilittlebig added the bug Something isn't working label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant