vikignt / svelte-mui

Simple Svelte 3 UI components
MIT License
317 stars 38 forks source link

Sane textfield #29

Open sourcegr opened 4 years ago

sourcegr commented 4 years ago

Hello @vikignt !

The Textfield component was kind of buggy, at least in our workflow.

With this PR, the following things happen, hopefully setting some things straight and making it more a component than a display.

We also believe that the default value for messagePersist should change to true - since we always - always - have to fill this up. I would like to hear what other users think on this.

sourcegr commented 4 years ago

You may want to keep it simple, and this is fully understood. The truth is that most of the tooling provided by this PR can be accomplished from the outside.

But since on 99% of the occasions a check is required in order to validate the contents for a field, it feels a little overhead to do it again and again all over, setting and unsetting error messages in the code.