Skip to content

Commit

Permalink
Merge branch 'feature/BB-24558' into feature/BB-24548
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriyYustunyk committed Dec 2, 2024
2 parents e5d6be4 + 042f5d5 commit 6caef62
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@
{% if excluded is defined %}
{% set component_options = component_options|merge({'excluded': excluded }) %}
{% endif %}
{% set classes = (attr.class|default('') ~ ' select2')|trim %}
{{ form_widget(form, { 'attr': {
'class': classes,
{% set selectElementClass = (attr.class|default('') ~ ' select2')|trim %}
{% if configs.selectElementClass is defined %}
{% set selectElementClass = selectElementClass ~ ' ' ~ configs.selectElementClass %}
{% endif %}
r {{ form_widget(form, { 'attr': {
'class': selectElementClass,
'data-page-component-module': component,
'data-page-component-options': component_options|json_encode|raw
} }) }}
Expand Down

0 comments on commit 6caef62

Please sign in to comment.