Opened 6 years ago
Last modified 5 years ago
#15269 new bug
Small bug with - datepicker for dates range
Reported by: | EGrozdev | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
After focusing 'from'* input element
- Select 'from' date with date picker
- Then manually delete 'from' content in input
At this stage date picker is in open status and 'from' date can be picked
- Pick the date -> nothing happens as 'on change' event may be overrides ui behavior
- If you pick the 'from' date again it will be appeared in 'to' date
- it could be either 'from' or 'till' - both has above mentioned bug.
I personally solve the issue by unfocus input element and hiding date picker, but there should be default functionality I guess.
My solution (in CoffeeScript):
$("#date_from, #date_till").on 'keyup', (e) -> if e.which == 46 and this.value.length == 0 this.blur() $("#" + this.id).datepicker('hide')
Change History (3)
comment:1 Changed 6 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 5 years ago by
Component: | ui.core → ui.datepicker |
---|
comment:3 Changed 5 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.