Skip to content

Commit 754579a

Browse files
committed
Merge branch 'develop' of [email protected]:goobi-workflow/goobi-workflow-core.git into develop
2 parents b62c742 + b65a618 commit 754579a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/webapp/WEB-INF/includes/template/inc_JS.xhtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
(() => {
5050
document.querySelectorAll('.grow-wrap').forEach( (wrap) => {
5151
const textarea = wrap.querySelector('textarea');
52+
if (!textarea) {
53+
return;
54+
}
5255
// Sync wrap and textarea on load
5356
wrap.dataset.content = textarea.value;
5457
textarea.addEventListener('input', () => {
@@ -63,6 +66,9 @@
6366
document.querySelectorAll('.grow-wrap').forEach( (wrap) => {
6467
// Sync wrap and textarea on load
6568
const textarea = wrap.querySelector('textarea');
69+
if (!textarea) {
70+
return;
71+
}
6672
wrap.dataset.content = textarea.value;
6773
textarea.addEventListener('input', () => {
6874
wrap.dataset.content = textarea.value;

0 commit comments

Comments
 (0)