From 4e06cef72952a7138622033884681e23ab270807 Mon Sep 17 00:00:00 2001 From: Justin Toupin <justin@atendesigngroup.com> Date: Thu, 20 Mar 2025 10:51:57 -0600 Subject: [PATCH] Check that .ui-dialog-content exists before attempting to manipulate it --- js/builder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/builder.js b/js/builder.js index a60f75f..747a91f 100644 --- a/js/builder.js +++ b/js/builder.js @@ -267,6 +267,9 @@ window.innerHeight || document.documentElement.clientHeight; if (bounding.bottom > viewPortHeight) { const $dialog = $('.ui-dialog-content', dialog); + if ($dialog.length === 0) { + return; + } const height = viewPortHeight - 200; $dialog.dialog('option', 'height', height); $dialog[0].style.overscrollBehavior = 'contain'; -- GitLab