Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata input of type date does not behave properly #6002

Open
oliver-stoehr opened this issue Mar 14, 2024 · 0 comments
Open

Metadata input of type date does not behave properly #6002

oliver-stoehr opened this issue Mar 14, 2024 · 0 comments

Comments

@oliver-stoehr
Copy link
Collaborator

Metadata inputs of type date do not behave/preserve properly when used in the metadata editor.
When you focus the date input and type the desired date by keyboard, that value is not submitted/preserved.
However, selecting the date by clicking on a day in the calendar popup works (It might be, that the blur event does not submit the value, but the datechanged event does (only fired when clicking on a day in the calendar popup).

To Reproduce

  1. Define a key in the ruleset with <codomain type="date"/>.
  2. Open the metadata editor and add one input of the defined key.
  3. Click into the input field and type a date (e.g. 2024-03-04)
  4. Select another structure element and select the first one again to update the metadata panel
  5. The value that was typed earlier is missing

Expected behavior
The date should be submitted/preserved when the value was typed. This should happen when the blur event is fired from the input field.

Workaround

  1. Focus the input field and type the value
  2. Click the button to open the calendar popup
  3. Click on the day representing the already typed date
    By typing the date first the calendar popup will display the desired month. This way the user is not required the select the month by clicking the left or right arrow in the popup, wich could require hundreds of click when the desired date is far in the past/future.

Release
3.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant