Skip to content

Commit

Permalink
Fix HTML widget not loading anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 27, 2023
1 parent 881e154 commit f915392
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ Page {
id: htmlContainer

Item {
property string htmlCode: containerCode
property var htmlItem: undefined

height: childrenRect.height
anchors {
left: parent.left
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f915392

Please sign in to comment.