orchidsoftware / orchidsoftware/platform

DateTimer in Listener

Open
#2,811 0 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Mar 13, 2024.

Errors
Dominant language
PHP
Stars
4.8k
Forks
662
Avg merge
1d 9h
Merged PRs (30d)
7

Description

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):

  • OS: MacOs
  • Browser Chrome

Server (please complete the following information):

  • Platfrom Version: 13.10.0
  • Laravel Version: 9.52.9
  • PHP Version: 8.1.26

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.