Skip to content

Sverdle Demo: animation issues #935

@henrikvilhelmberglund

Description

@henrikvilhelmberglund

Describe the bug

  • if (form?.badGuess) form.badGuess = false; is not correctly setting form.badGuess to false causing animation to not play after submitting again

repro:

  1. type non existing word with 5 letters
  2. submit, animation plays
  3. backspace
  4. type non existing word again
  5. submit, animation doesn't play
    expected: animation plays

  • animation does not replay when submitting a non existing word multiple times because of bad-guess class

repro:

  1. type non existing word with 5 letters
  2. submit, animation plays
  3. submit, animation doesn't play again
    expected: animation plays again

Reproduction

npx sv create with Sverdle demo
(why not include Sverdle in https://node.new/sveltekit ?)

Logs

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 AMD Ryzen 5 7600 6-Core Processor
    Memory: 7.00 GB / 31.06 GB
  Binaries:
    Node: 25.5.0 - C:\nvm4w\nodejs\node.EXE
    npm: 11.8.0 - C:\nvm4w\nodejs\npm.CMD
    bun: 1.3.9 - C:\Users\henri\.bun\bin\bun.EXE
  Browsers:
    Chrome: 145.0.7632.76
    Edge: Chromium (143.0.3650.66)
  npmPackages:
    @sveltejs/adapter-auto: ^7.0.0 => 7.0.1 
    @sveltejs/kit: ^2.50.2 => 2.52.2 
    @sveltejs/vite-plugin-svelte: ^6.2.4 => 6.2.4 
    svelte: ^5.51.0 => 5.53.0 
    vite: ^7.3.1 => 7.3.1

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions