Avoid errors from webcomponent children who haven't had a chance to fully set up yet.

This commit is contained in:
nathan 2022-05-17 09:36:56 -06:00
parent b956f1f28d
commit 3658d4e7f2

View File

@ -3664,7 +3664,8 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
jQuery(header.getDOMNode()).prependTo(self.header_div); jQuery(header.getDOMNode()).prependTo(self.header_div);
break; break;
case 1: // header_right: before favorites and count case 1: // header_right: before favorites and count
jQuery(header.getDOMNode()).prependTo(self.header_div.find('div.header_row_right')); window.setTimeout(() =>
jQuery(header.getDOMNode()).prependTo(self.header_div.find('div.header_row_right')));
break; break;
case 2: // header_row: after search case 2: // header_row: after search
window.setTimeout(function() window.setTimeout(function()