Merge pull request #372 from philomena-dev/tagsinput-tagblock

Scope tag input select to tag block
This commit is contained in:
liamwhite 2024-11-16 12:40:54 -05:00 committed by GitHub
commit d71537f597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ import { TermSuggestion } from './utils/suggestions';
export function setupTagsInput(tagBlock: HTMLDivElement) {
const form = assertNotNull(tagBlock.closest('form'));
const textarea = assertNotNull($<HTMLTextAreaElement>('.js-taginput-plain', tagBlock));
const container = assertNotNull($<HTMLDivElement>('.js-taginput-fancy'));
const container = assertNotNull($<HTMLDivElement>('.js-taginput-fancy', tagBlock));
const parentField = assertNotNull(tagBlock.parentElement);
const setup = assertNotNull($<HTMLButtonElement>('.js-tag-block ~ button', parentField));
const inputField = assertNotNull($<HTMLInputElement>('input', container));