Closed danielreales7 closed 1 year ago
We are using the internal filamentpho methods to create our input entangle according to your screenshots the code that genretade passes true as the second option of the entangle that means that the data must be synced live with backend Here is the livewire documentation https://livewire.laravel.com/docs/javascript
If the value is not updating you should create an issue in livewire repository
@ariaieboy It syncs well with the backend but I need it to have a debounce of 500 and it doesn't work.
Did you set the debounce amount in the live method ? https://filamentphp.com/docs/3.x/forms/advanced#debouncing-reactive-fields
Yes @ariaieboy !
TextInput::make('priceWithTax')
->numeric()
->live(debounce: 500)
->suffix('€')
->currencyMask(thousandSeparator: '.',decimalSeparator: ',',precision: 2)
Always makes the call to the backend when I press a key without taking into account the debounce. If I delete ->currencyMask() it's works correctly
We currently use Filament applyStateBindingModifiers
helper to create our state binding modifiers.
Since Livewire doesn't have the option to change the debounce amount in the entangle
method the debounce amount is not used in entangled fields for example the filament markdown editor does not support debouncing too.
@ariaieboy It's curious. I didn't know that. Thank you also for the help, but for example if I want to calculate a price refund automatically when the user writes the quantity, if the user writes too quickly errors occur and the calculation is not done correctly. That's why I wanted to use debounce.
Same problem i have. If i use live method in any form element to update price field, can't use currenyMask method in price input. If you solve this it will be great.
Same problem i have. If i use live method in any form element to update price field, can't use currenyMask method in price input. If you solve this it will be great.
What is the error ? Create a repo and reproduce the problem
What happened?
When you use the
->currencyMask
attribute you lose the->live
attributeWithout
->currencyMask()
With
->currencyMask()
How to reproduce the bug
When you use the
->currencyMask
attribute you lose the->live
attributePackage Version
1.1.3
PHP Version
8.1
Laravel Version
10.10
Which operating systems does with happen with?
No response
Notes
No response