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

<input type="reset" /> clears form instead of respecting values #8654

Closed
angrytongan opened this issue Jan 21, 2023 · 3 comments
Closed

<input type="reset" /> clears form instead of respecting values #8654

angrytongan opened this issue Jan 21, 2023 · 3 comments

Comments

@angrytongan
Copy link
Contributor

angrytongan commented Jan 21, 2023

Describe the bug

Using <input type="reset" /> on a form with hardcoded values clears the form when it shouldn't.

Reproduction

https://github.com/angrytongan/use-enhance-bug

  1. Install
git clone https://github.com/angrytongan/use-enhance-bug
npm install
npm run dev
  1. Browse to http://localhost:5173/reset

  2. Press Reset.

Form is reset, but values shouldn't not change. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/reset

Logs

No response

System Info

System:
    OS: macOS 12.6.2
    CPU: (4) x64 Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
    Memory: 272.98 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.87
    Safari: 16.2
  npmPackages:
    @sveltejs/adapter-auto: ^1.0.0 => 1.0.0 
    @sveltejs/kit: ^1.0.0 => 1.0.7 
    svelte: ^3.54.0 => 3.55.0 
    vite: ^4.0.0 => 4.0.4

Severity

annoyance

Additional Information

Related to #8513 via #8404.

@NormandoHall
Copy link

BTW...

image

@eltigerchino
Copy link
Member

Might be worth moving this to the sveltejs/svelte repository. It’s an issue related to Svelte itself rather than SvelteKit.

@angrytongan
Copy link
Contributor Author

Moved to sveltejs/svelte#8220

@angrytongan angrytongan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants