Skip to content

Modal action cannot be reopened after first close when form contains a field with ->mask() #19616

@albyzip

Description

@albyzip

Package

filament/actions

Package Version

v4.9.3

Laravel Version

v13.3.0

Livewire Version

v3.7.13

PHP Version

PHP 8.5.4

Problem description

When a modal (or slideOver) action contains a form field with a dynamic mask (->mask(RawJs::make(...))), the modal opens correctly the first time. After closing it — without interacting with any field — attempting to open the same modal again does nothing. No error is shown, no exception is thrown, the modal simply does not appear.

Expected behavior

The modal should open normally every time the trigger is clicked, regardless of whether it was previously opened and closed

Steps to reproduce

  1. Create a page with an action that opens a modal
  2. Add a single TextInput with ->mask(RawJs::make("$money($input, '.', '', 2)")) inside the action schema
  3. Open the modal
  4. Close it without touching the field
  5. Click the button to open it again — nothing happens

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

https://github.com/albyzip/filament-mask-bug.git

Relevant log output

None. No JavaScript errors in console, no Laravel exceptions.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions