Opened 11 years ago

Closed 11 years ago

#3867 closed bug (notabug)

tabsshow event is not fired on initialization if using bind()

Reported by: klaus.hartl Owned by: klaus.hartl
Priority: critical Milestone: 1.7
Component: ui.tabs Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:

Description

Using bind('tabsshow') the event does not get fired on initialization whereas using the show option it does.

Change History (2)

comment:1 Changed 11 years ago by Scott González

The following works for me (logs 'event' then 'callback'):

$('#tabs')
	.bind('tabsshow', function() {
		console.log('event');
	})
	.tabs({
		show: function() {
			console.log('callback');
		}
	});

Were you binding after the call to .tabs()?

comment:2 Changed 11 years ago by klaus.hartl

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.