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

Keep input value on HRM #93

Open
tiagoapp opened this issue Nov 6, 2022 · 0 comments
Open

Keep input value on HRM #93

tiagoapp opened this issue Nov 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tiagoapp
Copy link

tiagoapp commented Nov 6, 2022

Using Svelte Kit with HRM, is it possible to save the input values when we change anything on the code?

const name = field('name', '', [required()]); // @hrm:keep doesn't seem to help
const myForm = form(name);
<input type="text" bind:value={$name.value} />
<p>example 123</p>

If i make any change to the "example 123" (for example, add a 4) the value of the input gets reset.

@tiagoapp tiagoapp added the bug Something isn't working label Nov 6, 2022
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

2 participants