Attempting to exit from filter text is now allowed if current option is empty

This commit is contained in:
Wlowscha 2025-01-08 00:17:29 +01:00
parent c340b8be28
commit a53195f174
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
}
success = true;
} else if (this.filterTextMode) {
} else if (this.filterTextMode && !(this.filterText.getValue(this.filterTextCursor) === this.filterText.defaultText)) {
this.filterText.resetSelection(this.filterTextCursor);
success = true;
} else {