Skip to content

Commit

Permalink
Added a placeholder to ensure the 'x' button works on Select2 dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Aug 24, 2024
1 parent e8d5057 commit 21d807f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/accounts/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%td= spacer
%td
.label #{t :category}:
= f.select :category, Setting.unroll(:account_category), { selected: (@account.category || "other").to_sym, include_blank: t(:other) }, { style: "width:160px", class: 'select2' }
= f.select :category, Setting.unroll(:account_category), { selected: (@account.category || "other").to_sym, include_blank: t(:other) }, { style: "width:160px", class: 'select2', placeholder: t(:other) }
%td= spacer
%td
.label #{t :rating}:
Expand Down

0 comments on commit 21d807f

Please sign in to comment.