Skip to content

Commit caea27d

Browse files
authored
fix(editor): Fix issue with case insensitive tags (#9071)
1 parent 4052b6c commit caea27d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cypress/e2e/17-workflow-tags.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Workflow tags', () => {
1414
wf.actions.addTags(TEST_TAGS.slice(0, 2));
1515
wf.getters.tagPills().should('have.length', 2);
1616
wf.getters.nthTagPill(1).click();
17-
wf.actions.addTags(TEST_TAGS[2]);
17+
wf.actions.addTags(TEST_TAGS[1].toUpperCase());
1818
wf.getters.tagPills().should('have.length', 3);
1919
wf.getters.isWorkflowSaved();
2020
});

packages/editor-ui/src/components/TagsDropdown.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ export default defineComponent({
124124
});
125125
126126
const options = computed<ITag[]>(() => {
127-
return allTags.value.filter(
128-
(tag: ITag) => tag && tag.name.toLowerCase().includes(filter.value.toLowerCase()),
129-
);
127+
return allTags.value.filter((tag: ITag) => tag && tag.name.includes(filter.value));
130128
});
131129
132130
const appliedTags = computed<string[]>(() => {
@@ -182,7 +180,7 @@ export default defineComponent({
182180
}
183181
184182
function filterOptions(value = '') {
185-
filter.value = value.trim();
183+
filter.value = value;
186184
void nextTick(() => focusFirstOption());
187185
}
188186

0 commit comments

Comments
 (0)