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

{form} contradicts with html <form> element tag #81

Open
style2joy opened this issue Apr 24, 2022 · 2 comments
Open

{form} contradicts with html <form> element tag #81

style2joy opened this issue Apr 24, 2022 · 2 comments

Comments

@style2joy
Copy link

When the <input> fields are not wrapped in <form> browser warns about missing form tag like

[DOM] Password field is not contained in a form

when <form> tag is used, Svelte warns about:

Plugin svelte: <form> will be treated as an HTML element unless it begins with a capital letter

Please suggest a way to fix/workaround this.

@JohnGallego
Copy link

I just import form with an alias:

import { field, form as svelteForm } from 'svelte-forms';

@c00
Copy link

c00 commented Jul 22, 2022

I find the need to rename an import is counter to the minimal approach of Svelte. I would prefer having the form just called svelteForm in the library.

Of course this would break backwards compatibility... But perhaps a thing to consider for v3?

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