From 3658d4e7f28a2ff95b86bb9da27653f0f7b308fc Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 17 May 2022 09:36:56 -0600 Subject: [PATCH] Avoid errors from webcomponent children who haven't had a chance to fully set up yet. --- api/js/etemplate/et2_extension_nextmatch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 1af11f80d1..b538c11cc8 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3664,7 +3664,8 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext jQuery(header.getDOMNode()).prependTo(self.header_div); break; 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; case 2: // header_row: after search window.setTimeout(function()