hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.27k stars 287 forks source link

Question/bug: HTML prop minlength doesn't work in SMUI Textfield component #646

Open ppcamp opened 4 months ago

ppcamp commented 4 months ago

Describe the bug When we try to use some manual html input element, and then submitting this form, it fails when length is less than specified, although, when using @smui/Textfield, the validation doesn't work as expected.

To Reproduce Example https://svelte.dev/repl/493ac4aee57e47b8a9bbad99e4317e6a?version=4.2.10

Expected behavior It should validate properly, showing up the HTML validation message, or we should have some doc about how to do this.

Screenshots Screenshot when submitting both.

image image

Desktop (please complete the following information):