fix: 一些问题修复

This commit is contained in:
guozhigq
2023-08-10 22:14:40 +08:00
parent 779d3c7eb2
commit bc2e363d6a
3 changed files with 25 additions and 19 deletions

View File

@ -56,7 +56,7 @@ class SSearchController extends GetxController {
}
void onClear() {
if (searchKeyWord.value.isNotEmpty) {
if (searchKeyWord.value.isNotEmpty && controller.value.text != '') {
controller.value.clear();
searchKeyWord.value = '';
searchSuggestList.value = [];