diff --git a/src/qml/RelationCombobox.qml b/src/qml/RelationCombobox.qml index ea9041230b..a97e9e6e74 100644 --- a/src/qml/RelationCombobox.qml +++ b/src/qml/RelationCombobox.qml @@ -330,10 +330,17 @@ Item { topMargin: mainWindow.sceneTopMargin bottomMargin: mainWindow.sceneTopMargin + onAboutToShow: { + contentItem.model = comboBox.delegateModel; + } + + onAboutToHide: { + contentItem.model = null; + } + contentItem: ListView { clip: true implicitHeight: Math.min(mainWindow.height - mainWindow.sceneTopMargin - mainWindow.sceneTopMargin, contentHeight) - model: comboBox.popup.visible ? comboBox.delegateModel : null currentIndex: comboBox.highlightedIndex section.property: featureListModel.groupField != "" ? "groupFieldValue" : ""