Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DOM text reinterpreted as HTML #9475

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 3 additions & 2 deletions src/mobile/navigation/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@ Controller.prototype.init = function (element) {
if (!datatarget) {
throw new Error('Missing datatarget');
}
const slideIn = $(datatarget);
if (slideIn.length != 1) {
const slideInFound = $.find(datatarget);
if (slideInFound.length != 1) {
throw new Error('Wrong slideIn');
}

const slideIn = $(slideInFound);
sbrunner marked this conversation as resolved.
Show resolved Hide resolved
// slide the "new" element in
slideIn.addClass(CLASS_NAMES.ACTIVE);

Expand Down
Loading