From bfecdc29a450ca0f7f8ffbfe50241066ca6b539f Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Fri, 27 Oct 2023 13:09:35 +0700 Subject: [PATCH] Fix HTML widget not loading anymore --- src/qml/FeatureForm.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qml/FeatureForm.qml b/src/qml/FeatureForm.qml index aa1d760787..bd6866737e 100644 --- a/src/qml/FeatureForm.qml +++ b/src/qml/FeatureForm.qml @@ -306,6 +306,9 @@ Page { id: htmlContainer Item { + property string htmlCode: containerCode + property var htmlItem: undefined + height: childrenRect.height anchors { left: parent.left @@ -338,9 +341,7 @@ Page { } } - property string htmlCode: containerCode - property var htmlItem: undefined - onVisibleChanged: { + Component.onCompleted: { if (visible) { if (htmlItem === undefined) { // avoid cost of WevView creation until needed