F
Filamentβ€’2y ago
derpoho

Textarea maxLength not working within Wizard?

I have a Textarea within a 3-step wizard, is it intended that maxLength/minLength are not rendered, i tracked it down to the !$isConcealed() call in the textarea view. it returns false when inside a wizard, but true if outside. am i missing something or is this intended. If so, why? πŸ˜‰ i solved it temporarily by adding ->extraInputAttributes(['maxlength' => 300]), which works, but not perfect!
2 Replies
Dan Harrin
Dan Harrinβ€’2y ago
the reason why it happens is because if you are on another wizard step and the input is not focusable, there will be a JS error as your browser cannot validate a hidden field there is still backend validation though
derpoho
derpohoβ€’2y ago
sure. ok, so it is intended. thats totally ok for me πŸ˜‰ Thanky for the update!
Want results from more Discord servers?
Add your server