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 29, 2023
1 parent 17015c8 commit bfecdc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qml/FeatureForm.qml
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

1 comment on commit bfecdc2

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.