air-datepicker icon indicating copy to clipboard operation
air-datepicker copied to clipboard

onChangeMonth not triggering when month is changed using top dropdown menu

Open rajjanorkar opened this issue 6 years ago • 5 comments

onChangeMonth: function (month, year) { console.log('i am not triggering when you change month using top dropdown'); }

also moveToOtherMonthsOnSelect does not trigger month change.

rajjanorkar avatar Feb 24 '18 19:02 rajjanorkar

Hmmm, need to think bout this, I suppose there were some problems with this behaviour.

t1m0n avatar Feb 28 '18 08:02 t1m0n

Thank you @t1m0n

Ideally we have to trigger onChangeMonth whenever we change the month using

  1. pre/next button (this is working)
  2. Dropdown selection (not working)
  3. if user is on different month and click on today button (not working)
  4. etc

rajjanorkar avatar Feb 28 '18 20:02 rajjanorkar

Hey @t1m0n,

Is there any update on this? Still can't get the function to run.

Thanks

ppilon avatar Apr 23 '19 20:04 ppilon

Здравствуйте! У меня, видимо, этот же вопрос. Или можно как-нибудь получить в событии "onChangeView" выбранный месяц? При условии (view == 'days') конечно же.

Odlord avatar Jun 19 '19 13:06 Odlord

В общем-то решил проблему. В событии "onChangeView" получаю "currentDate": var dp = $('#calendar').datepicker().data('datepicker'); var selDate = dp.currentDate;

Odlord avatar Jun 20 '19 08:06 Odlord