Skip to main content

Search and Top Navigation

#7686 closed bug (fixed)

Opened September 01, 2011 08:43PM UTC

Closed September 16, 2011 02:47PM UTC

Last modified September 16, 2011 02:48PM UTC

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:
Blocked by: Blocking:
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({
	});
});
Attachments (0)
Change History (3)

Changed September 16, 2011 02:47PM UTC by scottgonzalez comment:1

resolution: → fixed
status: newclosed

Fixed in af76ad1c82625521b94bfc8bf967d9ca4f44da37.

Changed September 16, 2011 02:48PM UTC by kborchers comment:2

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

Changed September 16, 2011 02:48PM UTC by scottgonzalez comment:3

milestone: 1.91.8.17