TextInput numeric fields are edited by mouse scrolling with ->live() method
Is there a way to disable this behavior? We need the fields to be live for live validation, but the mouse scrolling is really annoying
Solution:Jump to solution
Try commenting it and see if it still occurs.
By the way, you can use
->rules(['numeric'])
which still apply the rule but remove the arrows on the input....9 Replies
Does it happen only when it is
live
?Yes, either with live(onBlur: true) or live(onBlur: false)
This is at the browser level and not anything to do with filament. Apparently there’s a way to disable it with JS, but no simple attribute to disable it.
Are you using
->numeric()
?yes I'm using ->numeric()
Solution
Try commenting it and see if it still occurs.
By the way, you can use
->rules(['numeric'])
which still apply the rule but remove the arrows on the input.Thank you very much! It worked!
You're welcome: happy to help!
Dont' forget to mark your question as solved!
Thanks! I was going to ask if I had to do it or it was admin's responsability!