Bug #2655
closedWDateEdit calendar not closing on selection
0%
Description
Not sure if this is a bug or intended:
- previously when using the popup calendar widget, it would auto-close after a date has been selected
- now one needs to click outside (change focus) to close it
Most of the calendar widgets I know close after selection, which makes them easier to use.
So if this is intended: I vote for reestablishing the old behavior.
Tested with latest master: 813a601f4fcdaae4b8af0c31b3f717b2809f922f
Files
Updated by Michael Knopke almost 11 years ago
Just to add a minor issue: it seems that the preferred height of this WDateEdit is wrong (using bootstrap theme). For me the height is chosen on the lineEdit height, but the little icon seems to be bigger and gets cropped.
Updated by Michael Knopke almost 11 years ago
- File calendar.png calendar.png added
Updated by Koen Deforche almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.3.2
Hey,
You can actually get the behaviour you want using edit~~calendar()~~>setSingleClickSelect(true), but I've also updated my git copy to make this the default behaviour.
Regards,
koen
Updated by Michael Knopke almost 11 years ago
Sorry, should have seen this myself, thanks will try.
Regards,
Michael
Updated by Michael Knopke almost 11 years ago
I tested the proposed change and it closes the calendar, but there seems to be a bug in combination with setEmptyText()
- if setEmptyText("something") is set, then the calendar widget will close without applying the selected date
- also, the setSingleClickSelect method is now deprecated and I tried the recommended setSelectionMode(Wt::SingleSelection) but it doesn't work
Please reopen the issue
Updated by Koen Deforche almost 11 years ago
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed