Skip to content

Commit

Permalink
Fix DOM text reinterpreted as HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Sep 17, 2024
1 parent 48fd9b1 commit 3c7214f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/import/importdatasourceComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class Controller {
if (this.file) {
this.hasError = false;
// update the label
$(fileInput).next('.custom-file-label').html(this.fileNameAndSize);
$(fileInput).next('.custom-file-label').text(this.fileNameAndSize);
}
this.scope_.$apply();
});
Expand Down
2 changes: 1 addition & 1 deletion src/mobile/navigation/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Controller.prototype.init = function (element) {
if (!datatarget) {
throw new Error('Missing datatarget');
}
const slideIn = $(datatarget);
const slideIn = $.find(datatarget);
if (slideIn.length != 1) {
throw new Error('Wrong slideIn');
}
Expand Down

0 comments on commit 3c7214f

Please sign in to comment.