Skip to content

TextInputColumn mask disappears after state change #13322

@pmartelletti

Description

@pmartelletti

Package

filament/filament

Package Version

v3.2.92

Laravel Version

v11.11.0

Livewire Version

v3.5.1

PHP Version

PHP 8.3.7

Problem description

When using the TextInputColumn in combination with dynamic masking (in particular, $money mask, but it happens with any mask as well), the masking is removed after a record is updated (not just from the update record but for all of them). Masking only appear on page full refresh.

Expected behavior

I'd expect the masking to continue to appear after the record has been updated.

Steps to reproduce

I'm attaching a very minimal repo where this error is reproduced. If you go to the Accounts resource, you'll be able to reproduce this by changing the "Balance" column of any of the accounts in the index table.

Please note the following:

  • The DB column is a decimal
  • I needed to use updateStateUsing as stripCharacters() method is not available on the TextInputColumn, but I think it does more or less the same (or at least, in my case).
  • I've not added forms to create "Accounts" but I've added a seeder that creates 2 accounts and 1 user to keep it simple.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/pmartelletti/text-column-input-bug

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions