DEV: Only autocomplete search result when suggestion keyword present (#25652)

This commit is contained in:
Isaac Janzen 2024-02-12 13:54:03 -07:00 committed by GitHub
parent d4fb6e1437
commit 6acc203786
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ export default class AssistantItem extends Component {
@debounce(100)
itemSelected() {
let updatedTerm = "";
if (this.args.slug) {
if (this.args.slug && this.args.suggestionKeyword) {
updatedTerm = this.prefix.concat(this.args.slug);
} else {
updatedTerm = this.prefix.trim();