Загрузка видео...
Не удалось загрузить видео
🍦 Nice little addition to a Laravel validation error: scroll your users back up to the error...
42,746 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 11

What if the error is at the bottom of the form? Maybe better to have some JavaScript that looks for the first error in the list by targeting the form then getting the first element with .error class or something…

Yeah, I toyed with that too: x-init="$el.closest('form').querySelector('[aria-invalid=\'true\']').closest('label').scrollIntoView()" Kind of a mouth-full lol, but works great

Great for UX!

Your making life too easy for people like me but I'll take it! Honestly, I can't wait to show what I've been building with the TALL stack and the day it's profitable I'll be giving back as much as I can for everyone's hard work.

Cool stuff, Caleb🥰

Why can't more apps do this? With how many times I click submit and get an error but don't know it because it's up at the top where am already scrolled passed and take a second to realize what's going on, I can only imagine how normal users must feel.

@filamentphp also supported by you?

Well done @calebporzio

@PovilasKorop That's literally what mostly we need when we have long forms.

Cool. What about a smooth scroll?

Pretty easy to add!
Похожие видео
Sensitive content
Neptunia Virtual Stars(ブイブイブイテューヌ) Yuu(ユウ) ryona A physics error causes hair and skirts to curl up. I didn't intend to, but it's nice.
Ferret
30,362 просмотров • 2 лет назад
Sensitive content
ERROR: SUBJECT IS CONDUCTING INDEPENDENT THOUGHT PATTERNS Please turn your attention to the screen for recalibration.
Director Vinyl
37,964 просмотров • 2 лет назад





