Regarding Datepicker, current month on clear

Hello,

After following below steps on datepicker,

  1. Click on the next month arrow button 3-4 times, e.g if having current month May, press next arrow till September.

  2. Now we have September month in Calendar, now click on clear button.(without selecting any date).

After clear button pressed, I want to show May month(i.e current month) on calendar when I reopen it, not September (By default its showing September i.e recently selected month).

Please tell me how to achieve this.

Thanks in advance!!

try this

webix.extend(webix.ui.calendar, {
  $init: function(){
    this.attachEvent("onDateClear", function(){
      this.selectDate(new Date(), true);
    })
  }
})

Its working! Thank You.