diff --git a/assets/js/tagsinput.ts b/assets/js/tagsinput.ts index 377db60d..74574906 100644 --- a/assets/js/tagsinput.ts +++ b/assets/js/tagsinput.ts @@ -9,7 +9,7 @@ import { TermSuggestion } from './utils/suggestions'; export function setupTagsInput(tagBlock: HTMLDivElement) { const form = assertNotNull(tagBlock.closest('form')); const textarea = assertNotNull($('.js-taginput-plain', tagBlock)); - const container = assertNotNull($('.js-taginput-fancy')); + const container = assertNotNull($('.js-taginput-fancy', tagBlock)); const parentField = assertNotNull(tagBlock.parentElement); const setup = assertNotNull($('.js-tag-block ~ button', parentField)); const inputField = assertNotNull($('input', container));