Skip to content

Commit

Permalink
Quick fixes to SearchSelect view
Browse files Browse the repository at this point in the history
Issue #2253
  • Loading branch information
robyngit committed Jul 25, 2024
1 parent dda8a31 commit 801e41d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/js/models/searchSelect/AccountSearchSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ define(["models/searchSelect/SearchSelect", "models/LookupModel"], (
const formatIcon = icon
? `<i class="icon icon-on-left icon-${icon}"></i>`
: "";
const formatId = id ? `<span class="description">${id}</span>` : "";
return {
name: `${formatIcon} ${accountName} ${formatId}`,
name: `${formatIcon} ${accountName}`,
value: result.value,
description: id,
descriptionVertical: true,
text: `${formatIcon} ${accountName}`,
};
},

Expand Down
2 changes: 1 addition & 1 deletion src/js/views/metadata/EML211View.js
Original file line number Diff line number Diff line change
Expand Up @@ -2551,7 +2551,7 @@ define([
}
});
view.addTaxa(selectedItemObjs);
taxonSelects.forEach((select) => select.changeSelection([], true));
taxonSelects.forEach((select) => select.model.setSelected([], { silent: true }));
};
button.removeEventListener("click", onButtonClick);
button.addEventListener("click", onButtonClick);
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/queryBuilder/QueryRuleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ define([

this.operatorSelect.render();

if(operatorError){
if (operatorError) {
view.operatorSelect.showInvalidSelectionError();
}

Expand Down

0 comments on commit 801e41d

Please sign in to comment.