Opened 2 years ago

Last modified 21 months 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 Ryan J Ollos)

After focusing 'from'* input element

  1. Select 'from' date with date picker
  2. Then manually delete 'from' content in input

At this stage date picker is in open status and 'from' date can be picked

  1. Pick the date -> nothing happens as 'on change' event may be overrides ui behavior
  2. 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
      $("#" +'hide') 

Change History (3)

comment:1 Changed 2 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 21 months ago by Scott González

Component: ui.coreui.datepicker

comment:3 Changed 21 months ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.