feat: Ability to upload multiple attachments at once

Closes #908
This commit is contained in:
Maksim Eltyshev
2024-10-09 12:38:18 +02:00
parent 0b3b6a30fc
commit 309c2ed762
4 changed files with 52 additions and 39 deletions

View File

@@ -1,5 +1,8 @@
// eslint-disable-next-line import/prefer-default-export
export const focusEnd = (element) => {
element.focus();
element.setSelectionRange(element.value.length + 1, element.value.length + 1);
};
export const isActiveTextElement = (element) =>
['input', 'textarea'].includes(element.tagName.toLowerCase()) &&
element === document.activeElement;