While editing the "To" date, if at any time the text value is not a valid date, the focus shift to the upper date selector, making changing the bottom selector challenging.
A typical use case could be having the current date "01/07/2019 11:50" on the "To" field, and deleting the 7 in order to type in a different day.
After deleting the 7, the cursor is at the end of the upper ("From") editor, making the whole operation difficult.
Here you can see the bug in action:
https://hipchat.powercosts.com/files...ateItemBug.avi
A typical use case could be having the current date "01/07/2019 11:50" on the "To" field, and deleting the 7 in order to type in a different day.
After deleting the 7, the cursor is at the end of the upper ("From") editor, making the whole operation difficult.
Here you can see the bug in action:
https://hipchat.powercosts.com/files...ateItemBug.avi
Code:
VLayout layout = new VLayout(); RootPanel.get().add(layout); DateRangeItem dateRangeItem = new DateRangeItem(); dateRangeItem.setTitle("Date Range Item"); dateRangeItem.setWrapTitle(false); dateRangeItem.setDateFormatter(DateDisplayFormat.TOUSSHORTDATETIME); dateRangeItem.setFromDate(new Date()); dateRangeItem.setToDate(new Date()); dateRangeItem.setAllowRelativeDates(true); DynamicForm dynamicForm = new DynamicForm(); dynamicForm.setFields(dateRangeItem); ToolStrip toolStrip = new ToolStrip(); toolStrip.addMember(dynamicForm); layout.addMember(toolStrip);
Comment