diff --git a/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig b/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig
index fa32def56b..d19c08ef6f 100644
--- a/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig
@@ -68,7 +68,7 @@
{{- block('form_label') }}
- {{- form_widget(form, {'attr': attr}) -}}
+ {{- form_widget(form, { attr }) -}}
{{- block('form_errors') -}}
diff --git a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
index 639a3ee78f..073a8ead4b 100644
--- a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
@@ -389,6 +389,9 @@
{%- set type = type|default('text') -%}
{%- set is_text_input = type == 'text' or type == 'number' or force_text|default(false) -%}
{%- if is_text_input -%}
+ {# @deprecated extra_actions_after in attr will be removed in 5.0, used for BC in 4.6 #}
+ {%- set extra_actions_after_from_attr = attr.extra_actions_after|default(null) -%}
+ {%- set attr = attr|filter((value, key) => key != 'extra_actions_after') -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' ibexa-input ibexa-input--text')|trim}) -%}
{%- set empty_placeholder_for_hiding_clear_btn_with_css = ' ' -%}
{%- set attr = attr|merge({placeholder: (attr.placeholder is defined and attr.placeholder is not null) ? attr.placeholder : empty_placeholder_for_hiding_clear_btn_with_css}) -%}
@@ -402,7 +405,7 @@
{% block actions %}
{{ parent() }}
- {{ extra_actions_after|default()}}
+ {{ extra_actions_after|default(extra_actions_after_from_attr)}}
{% endblock %}
{%- endembed -%}
{%- else -%}