Jira Assistant Issues

View #211 on GitHub to know more details

#211 - Date picker: too easy to dismiss and lose changes

johnbeard commented on Jun 07, 2022

When changing the date of an issue in the calendar, it's too easy to dismiss the dialog by de-focusing the picker. This will discard the date you have selected (i.e. clicking outside the picker and clicking "cancel" are equivalent). Because very many date pickers forms like this update immediately, without an Apply button, it's extremely common to then lose the new date.

Also the apply button is not obviously part of the picker as it's below the calendar area, whereas the affordance to open the picker is above the dialog and the dialog border is very light so the "apply/cancel" toolbar fades into the background dialog:


I suggest that either the picker becomes "update on select" (like, say, the ones on Jira) or do not allow to dismiss the dialog on defocus if there are changes (i.e. make the user deliberately select "cancel" or "accept").

shridhar-tl commented on Jun 07, 2022

Hi @johnbeard - Thank you for your suggestion. But unfortunately the date picker component which is used does not support such capablity. I have already tried workarounds by trying to intercept the close events and set the selected date long back and that too doesn't work as expected.

Alternatively, you can post this query in actual date picket component (link provided below) and if they can provide support for this feature, I am happy to implement it.

Date picker Component: https://www.daterangepicker.com/#options

So as of now it is not possible to implement this functionality and hence closing this ticket. But please feel free to reopen this ticket if you know of any other possibility.