anchor.diff:              label: "Today"
             }],
             label: "or",
  -          onClick: (index, fp) => {
  -            let date;
  -            switch (index) {
  -              case 0:
  -                date = new Date();
  -                break;
  -            }
  -            fp.setDate(date);
  -          }
  +          onClick: onClickButtons
           })
         ]
     }
  
positive.code:             label: "Now"
            }],
            label: "or",
            onClick: (index, fp) => {
              let date;
              switch (index) {
                case 0:
                  date = new Date();
                  break;
              }
              fp.setDate(date);
            }
          })
        ]
      }
  
negative.code: $(document).ready(function() {
    var onClickButtons = function(index, fp) {
      var date;
      switch (index) {
        case 0:
          date = new Date();
          break;
      }
      fp.setDate(date, true);
    }
    window.FLATPICKR_DATE_DEFAULT = {
      dateFormat: Spree.translations.flatpickr_date_format,
      locale: I18n.locale,
  