Patch: Fix link hints (#5176)

This commit is contained in:
Christian Günter 2021-12-03 15:10:04 +01:00 committed by GitHub
parent 4910506b35
commit 94e6bdc20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1378,11 +1378,12 @@ LinkHints.prototype.deployHintContainers = function() {
if (hintTargets[i].nodeName === "INPUT" || hintTargets[i].nodeName === "TEXTAREA") {
// does not work if inside the input node
if (hintTargets[i].type === "checkbox" || hintTargets[i].type === "radio") {
if (hintTargets[i].nextElementSibling.nodeName === "LABEL" ) {
if (hintTargets[i].nextElementSibling && hintTargets[i].nextElementSibling.nodeName === "LABEL" ) {
// insert at end of label
hintTargets[i].nextElementSibling.appendChild(hint.container);
} else {
// skip because something changed in ZCL_ABAPGIT_HTML_FORM
// inserting right after
hintTargets[i].insertAdjacentElement("afterend", hint.container);
}
} else {
// inserting right after