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:
@@ -31,6 +31,7 @@ QQC2.Popup {
|
|||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
|
emojiPicker.clearSearchField()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
emojiPicker.forceActiveFocus()
|
emojiPicker.forceActiveFocus()
|
||||||
|
|||||||
@@ -206,4 +206,8 @@ ColumnLayout {
|
|||||||
onClicked: stickerModel.packIndex = model.index
|
onClicked: stickerModel.packIndex = model.index
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearSearchField() {
|
||||||
|
searchField.text = ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user