I have an issue with the calendar of flatpickr. It doesn't display anymore the calendar and i don't know why... I already test the solution of this other post: Calendar is not displaying correctly using flatpickr, but it doesn't work. I can change manually the date but i don't have anymore a calendar which appear when i click on the button of the date. Thank you for your help !!
my code:
flatpickr.js
import flatpickr from "flatpickr"
import "flatpickr/dist/flatpickr.min.css"
flatpickr(".datepicker", {
  allowInput: true,
  dateFormat: "d.m.Y",
  mode: "single",
  maxDate: "today",
  locale: {
    firstDayOfWeek: 1,
    weekdays: {
      shorthand: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
      longhand: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
    },
    months: {
      shorthand: ["janv","févr", "mars", "avr", "mai", "juin", "juil", "août", "sept", "oct", "nov", "déc",],
      longhand: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
    },
  },
  disableMobile: "true",
})
application.html.erb
<title>Collecte des avis clients dans le restaurant, solution digital de rétention et fidélisation clients</title>
    <%= csrf_meta_tags %>
    <%= action_cable_meta_tag %>
    <%= stylesheet_link_tag 'application', media: 'all' %>
    <%= stylesheet_pack_tag 'application', media: 'all' %>
    <%= favicon_link_tag asset_path('flavicon.png') %>
    <!-- Uncomment if you import CSS in app/javascript/packs/application.js -->
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js" data-turbolinks-eval=false></script>
  </head>
  <body>
    <%= render "/shared/flashes" %>
    <%= yield %>
    <%= javascript_include_tag 'application' %>
    <%= javascript_pack_tag 'application' %>
    <script>AOS.init();</script>
application.js:
//= require_tree .
//= require jquery
day.html.erb:
<div>
 <%= form_tag day_restaurant_path(@restaurant), method: :get do %>
 <%= text_field_tag :date, params[:search_date], class: "datepicker deco-flatpickr", value: @search_date.strftime("%d-%m-%Y") %>
 <% end %> 
</div>