afterStateUpdated not work on custom field
Hi
, I've created a new “TypeCylinder” field in my form. It works fine, except that I can't get the afterStateUpdated() method to work, as it never seems to be called... Any idea why?
Here the input on the form :
The field class (CylinderType.php) :
Here the input on the form :
The field class (CylinderType.php) :
Solution
state should also be
state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }}