pelmered / filament-money-field

Money field powered by Money PHP
MIT License
40 stars 19 forks source link

defer configuration using closure #22

Closed kainiklas closed 3 months ago

kainiklas commented 3 months ago

This PR fixes Issue https://github.com/pelmered/filament-money-field/issues/21

It defers the configuration of affixes and mask using a closure. Not all information is present when setUp() is called, especially in live() mode. Using a closure the retrieval of the information is defered to the "get" methods and works as expected.

pelmered commented 3 months ago

Looks good, thanks!