mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Fix issue with case insensitive tags (#9071)
This commit is contained in:
parent
4052b6c073
commit
caea27dbb5
|
@ -14,7 +14,7 @@ describe('Workflow tags', () => {
|
||||||
wf.actions.addTags(TEST_TAGS.slice(0, 2));
|
wf.actions.addTags(TEST_TAGS.slice(0, 2));
|
||||||
wf.getters.tagPills().should('have.length', 2);
|
wf.getters.tagPills().should('have.length', 2);
|
||||||
wf.getters.nthTagPill(1).click();
|
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.tagPills().should('have.length', 3);
|
||||||
wf.getters.isWorkflowSaved();
|
wf.getters.isWorkflowSaved();
|
||||||
});
|
});
|
||||||
|
|
|
@ -124,9 +124,7 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
const options = computed<ITag[]>(() => {
|
const options = computed<ITag[]>(() => {
|
||||||
return allTags.value.filter(
|
return allTags.value.filter((tag: ITag) => tag && tag.name.includes(filter.value));
|
||||||
(tag: ITag) => tag && tag.name.toLowerCase().includes(filter.value.toLowerCase()),
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const appliedTags = computed<string[]>(() => {
|
const appliedTags = computed<string[]>(() => {
|
||||||
|
@ -182,7 +180,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterOptions(value = '') {
|
function filterOptions(value = '') {
|
||||||
filter.value = value.trim();
|
filter.value = value;
|
||||||
void nextTick(() => focusFirstOption());
|
void nextTick(() => focusFirstOption());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue