Skip to content

Commit

Permalink
fix(editor): Fix issue with case insensitive tags (#9071)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Apr 5, 2024
1 parent 4052b6c commit caea27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/17-workflow-tags.cy.ts
Expand Up @@ -14,7 +14,7 @@ describe('Workflow tags', () => {
wf.actions.addTags(TEST_TAGS.slice(0, 2));
wf.getters.tagPills().should('have.length', 2);
wf.getters.nthTagPill(1).click();
wf.actions.addTags(TEST_TAGS[2]);
wf.actions.addTags(TEST_TAGS[1].toUpperCase());
wf.getters.tagPills().should('have.length', 3);
wf.getters.isWorkflowSaved();
});
Expand Down
6 changes: 2 additions & 4 deletions packages/editor-ui/src/components/TagsDropdown.vue
Expand Up @@ -124,9 +124,7 @@ export default defineComponent({
});
const options = computed<ITag[]>(() => {
return allTags.value.filter(
(tag: ITag) => tag && tag.name.toLowerCase().includes(filter.value.toLowerCase()),
);
return allTags.value.filter((tag: ITag) => tag && tag.name.includes(filter.value));
});
const appliedTags = computed<string[]>(() => {
Expand Down Expand Up @@ -182,7 +180,7 @@ export default defineComponent({
}
function filterOptions(value = '') {
filter.value = value.trim();
filter.value = value;
void nextTick(() => focusFirstOption());
}
Expand Down

0 comments on commit caea27d

Please sign in to comment.