Skip to content

Commit

Permalink
Do not apply Select2 library to duet-date date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis Igoumenos committed May 17, 2022
1 parent ff60349 commit 0671c0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/templates/element/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@
$("input:submit").addClass("spin submit-button btn btn-primary");

// Make all select form controls Bootstrappy
$("select").addClass("form-select").select2({
$("select").addClass("form-select");

// Use select2 library everywhere except
// - duet-date
$("select").not(".duet-date__select--month").not(".duet-date__select--year").select2({
width: '100%',
tags: true,
placeholder: "-- Select --"
Expand Down

0 comments on commit 0671c0f

Please sign in to comment.