pelmered / filament-money-field

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

[Bug] live() breaks MoneyInput #21

Closed kainiklas closed 3 months ago

kainiklas commented 3 months ago

Affected Version: 1.2.0

Given the following money field definiton:

MoneyInput::make('average_buy_price')
  ->currency('EUR')->locale('de_DE')
  ->live()

The currency switches back after blur.

If the env setting MONEY_USE_INPUT_MASK=true is set, then it switches almost immediately.

kainiklas commented 3 months ago

I opened PR https://github.com/pelmered/filament-money-field/pull/22 to fix the issue.

pelmered commented 3 months ago

Thank you for the PR. I merged it, and will make a release soon. There are some other things I want to get into that release as well.