mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Merge pull request #372 from philomena-dev/tagsinput-tagblock
Scope tag input select to tag block
This commit is contained in:
commit
d71537f597
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import { TermSuggestion } from './utils/suggestions';
|
||||||
export function setupTagsInput(tagBlock: HTMLDivElement) {
|
export function setupTagsInput(tagBlock: HTMLDivElement) {
|
||||||
const form = assertNotNull(tagBlock.closest('form'));
|
const form = assertNotNull(tagBlock.closest('form'));
|
||||||
const textarea = assertNotNull($<HTMLTextAreaElement>('.js-taginput-plain', tagBlock));
|
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 parentField = assertNotNull(tagBlock.parentElement);
|
||||||
const setup = assertNotNull($<HTMLButtonElement>('.js-tag-block ~ button', parentField));
|
const setup = assertNotNull($<HTMLButtonElement>('.js-tag-block ~ button', parentField));
|
||||||
const inputField = assertNotNull($<HTMLInputElement>('input', container));
|
const inputField = assertNotNull($<HTMLInputElement>('input', container));
|
||||||
|
|
Loading…
Reference in a new issue