Skip to content

Commit

Permalink
Reset coptions table before calculating the date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis Igoumenos committed May 16, 2022
1 parent 7d5671c commit dc07d68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/templates/element/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
// that will interact with the field value. Allowing direct access to the input field is for
// accessibility purposes.
$starts_field = $key . "_starts_at";
$coptions = [];
$coptions['class'] = 'form-control datepicker';
$coptions['label'] = 'Starts at:';
$coptions['required'] = false;
Expand Down Expand Up @@ -234,6 +235,7 @@
// that will interact with the field value. Allowing direct access to the input field is for
// accessibility purposes.
$ends_field = $key . "_ends_at";
$coptions = [];
$coptions['class'] = 'form-control datepicker';
$coptions['required'] = false;
$coptions['placeholder'] = ''; // todo: Make this configurable
Expand Down

0 comments on commit dc07d68

Please sign in to comment.