trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
693 stars 246 forks source link

Form validation - small UX tweak #13425

Open shenkys opened 1 month ago

shenkys commented 1 month ago

In passphrase we've encountered that our forms behave in a weird way when de-focused.

It's been fixed for passphrase. We just need to cover the other cases. Such as:

They validate automatically on de-focus which is not something we'd like to have for single-input forms.

Please let's fix this functionality by not validating these forms on de-focus.

juriczech commented 1 month ago

FYI: Passphrase form already implements this here: https://github.com/trezor/trezor-suite/pull/13424

juriczech commented 1 month ago

@shenkys Also that means that the button should hide when input is "invalid" / empty, similar to passphrase, right?