Tags: Fixed enter press clearing field

For #4570
This commit is contained in:
Dan Brown 2023-10-04 09:08:10 +01:00
parent bd7c7eb8d6
commit 0241032f06
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -31,7 +31,10 @@ export class AutoSuggest extends Component {
},
event => {
event.preventDefault();
this.selectSuggestion(event.target.textContent);
const selectionValue = event.target.textContent;
if (selectionValue) {
this.selectSuggestion(selectionValue);
}
},
);
navHandler.shareHandlingToEl(this.input);