History: collapse "Sort & Filter" when user types

This commit is contained in:
rating89us 2021-06-12 20:43:35 +02:00 committed by GitHub
parent 7c379e2cda
commit 3eae630cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,9 @@ Rectangle {
placeholderFontSize: 15 placeholderFontSize: 15
inputHeight: 34 inputHeight: 34
onTextUpdated: { onTextUpdated: {
if (!sortAndFilter.collapsed) {
sortAndFilter.collapsed = true;
}
if(searchInput.text != null && searchInput.text.length >= 3){ if(searchInput.text != null && searchInput.text.length >= 3){
root.sortSearchString = searchInput.text; root.sortSearchString = searchInput.text;
root.reset(); root.reset();