Skip to content

Commit

Permalink
[BUGFIX] Trim id for full text element (#1475)
Browse files Browse the repository at this point in the history
How did we manage to have an ID value of "tx-dlf-fulltextselection\n "? That's some weird stuff...

Anyway, nice catch and thanks for the fix!
  • Loading branch information
beatrycze-volk authored Feb 6, 2025
1 parent fc34d14 commit 315ad81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/PageView/FulltextControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ dlfViewerFullTextControl.prototype.showFulltext = function(features) {
if (fullTextScrollElementId.substr(0,1) === '#') {
fullTextScrollElementId = fullTextScrollElementId.substr(1);
}
var target = document.getElementById(fullTextScrollElementId);
var target = document.getElementById(fullTextScrollElementId.trim());
if (target !== null) {
target.innerHTML = "";
for (var feature of features) {
Expand Down

0 comments on commit 315ad81

Please sign in to comment.