ariaieboy / filament-currency

Enhanced Currency Related stuff for Filament
MIT License
49 stars 8 forks source link

Fixes money not rendering properly on reload due to not firing input … #26

Closed nielsvh2103 closed 5 months ago

nielsvh2103 commented 5 months ago

This will fix the described issue that can be found here: https://github.com/ariaieboy/filament-currency/issues/25

Not much changes except for the input event will also dispatch on load due to calling updateMasked. Also improves readability and less duplication.

If merging, create a new release please :)

Note: if(typeof Number(this.input) === 'number'){

This may be redundant, not sure though haven't checked.