Fix issue when refreshing an entire form that occurs because the toggleEmptyTabs timer runs after the elements it was based on have all been replaced.
This commit is contained in:
parent
cbbc82ac86
commit
b2d88d6da9
|
|
@ -220,7 +220,7 @@
|
|||
var tabControl = $('[data-control=tab]', self.$el),
|
||||
tabContainer = $('.nav-tabs', tabControl)
|
||||
|
||||
if (!tabControl.length || !$.contains(form.get(0), tabControl.get(0)))
|
||||
if (!tabControl.length || !form || !form.length || !$.contains(form.get(0), tabControl.get(0)))
|
||||
return
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue