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:
Luke Towers 2020-06-24 11:33:44 -06:00
parent cbbc82ac86
commit b2d88d6da9
1 changed files with 1 additions and 1 deletions

View File

@ -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
/*