Closed devhoussam1998 closed 7 months ago
Auto-Update of slug
field based on title
field
The functionality of the title
text input was changed so that the related slug
field is automatically updated when the title
is modified, but only when the slug
has not been manually changed before, the title
has content, and the record
is currently empty.
Addition of debounce
method to title
text input
A debounce
method has been introduced to the title
text input to control the frequency of function execution. The delay for this controlled execution is currently set to 500 milliseconds. This should improve the efficiency of updating related components as the title text is changed.
Removal of is_slug_changed_manually
hidden field
This particular hidden field, which was being used to recognize manual change in the slug
field, has now been eliminated.
Removal and Adjustment of Slug
text input methods
Previously used 'afterStateUpdated' callback for the slug
text input, which was often responsible for reacting to state changes, has been removed. Also, its unique
method is amended to ignore the record, and the rule
method is updated to check whether the value starts or ends with a forward slash.
for more information about this update: https://filamentphp.com/docs/3.x/forms/advanced#generating-a-slug-from-a-title