Ticket #7686 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

infinite loop when onclose event shows a second calendar

Reported by: vegancorr2 Owned by:
Priority: minor Milestone: 1.8.17
Component: ui.datepicker Version: 1.8.16
Keywords: Cc:
Blocking: Blocked by:

Description

It worked fine in 1.8.12. In 1.8.13 a bug was introduced and the second calendar wouldn't close. In 1.8.16 the second calendar wouldn't fire up since onClose from the first calendar remains stuck in a continuous loop.

jQuery(function($) {
	jQuery('#fromDate').datepicker({
		'onClose':function(selectedDate) {
			console.log('loop');
			$('#toDate').datepicker('show');
		}
	});
	
	jQuery('#toDate').datepicker({
	});
});

Change History

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 3 years ago by kborchers

Datepicker: Added additional check to checkExternalClick to work when clicking in another datepicker and removed old fix. Fixes #7686 - infinite loop when onclose event shows a second calendar (cherry picked from commit af76ad1c82625521b94bfc8bf967d9ca4f44da37)

Changeset: 872387abd5ab59e00df108438ae5bba76df1138a

comment:3 Changed 3 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.17
Note: See TracTickets for help on using tickets.