Clear the emoji picker search when the dialog is closed

Clear the emoji picker search when the dialog is closed

BUG: 472873
This commit is contained in:
James Graham
2024-01-01 16:15:29 +00:00
parent d5f4a3dd64
commit 7e9f206348
2 changed files with 5 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ QQC2.Popup {
onVisibleChanged: {
if (!visible) {
emojiPicker.clearSearchField()
return
}
emojiPicker.forceActiveFocus()

View File

@@ -206,4 +206,8 @@ ColumnLayout {
onClicked: stickerModel.packIndex = model.index
}
}
function clearSearchField() {
searchField.text = ""
}
}