orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

DateTimer in Listener #2811

Open plamenradev opened 3 months ago

plamenradev commented 3 months ago

Describe the bug When using DateTimer field within Listener - only first calendar date pick updates the input field and triggers the event for the listener. The calendar stays open, which is fine, but when you try to pick a different date - it doesn't update the input field and doesn't trigger the event for listener.

If you close the calendar and open it again and pick a new date - it updates the input field, but just the first time when you pick a date. I write some JS code, which closes the calendar on input change, but it works well only if you don't have a time picker - so you just pick a date and the calendar closes. BUT when you have a timer picker as well - the calendar is closed on every hour/minutes change, so if you need to select 18h you need to open and change the hours few times, which is annoying.

To Reproduce

  1. Create Listener with DateTimer field
  2. Pick a date from the calendar at least twice without closing the calendar - only first time the input field is updated, the second time nothing happened.

Expected behavior Update the input field and make request to the listener method everytime you pick a date without closing the calendar

Screenshots image

Desktop (please complete the following information):

Server (please complete the following information):