Skip to content
Snippets Groups Projects
Commit 1cd46e64 authored by Steven Wittens's avatar Steven Wittens
Browse files

#57750: Tweaks for textareas inside collapsed fieldsets

parent 062412e1
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -24,7 +24,7 @@ function collapseAutoAttach() {
collapseScrollIntoView(this.parentNode.parentNode);
if (typeof textAreaInit != 'undefined') {
// Add the grippie to a textarea in a collapsed fieldset.
textAreaInit(this.parentNode.parentNode);
textAreaAutoAttach(null, this.parentNode.parentNode);
}
}
this.blur();
......
......@@ -4,7 +4,7 @@ if (isJsEnabled()) {
addLoadEvent(textAreaInit);
}
function textAreaInit(parent) {
function textAreaAutoAttach(event, parent) {
if (typeof parent == 'undefined') {
// Attach to all visible textareas.
textareas = document.getElementsByTagName('textarea');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment