Closed danallen88 closed 8 years ago
Say my configuration looked like this:
dateRangeOpts: { ... alwaysShowCalendars: false, ... eventHandlers: { 'apply.daterangepicker': function( scope ) { console.log('apply'); }, 'show.daterangepicker': function( scope ) { console.log('show'); }, 'showCalendar.daterangepicker': function( scope ) { console.log('showCalendar'); } } }
Then every time the daterangepicker is opened, even if the calendars are not displayed, both showCalendar.daterangepicker and show.daterangepicker event handlers are invoked.
I believe this was due to modified source per the suggestion in https://github.com/fragaria/angular-daterangepicker/issues/187
Say my configuration looked like this:
Then every time the daterangepicker is opened, even if the calendars are not displayed, both showCalendar.daterangepicker and show.daterangepicker event handlers are invoked.