Skip to content

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/import/importdatasourceComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class Controller {
254254
if (this.file) {
255255
this.hasError = false;
256256
// update the label
257-
$(fileInput).next('.custom-file-label').html(this.fileNameAndSize);
257+
$(fileInput).next('.custom-file-label').text(this.fileNameAndSize);
258258
}
259259
this.scope_.$apply();
260260
});

src/mobile/navigation/component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,12 @@ Controller.prototype.init = function (element) {
177177
if (!datatarget) {
178178
throw new Error('Missing datatarget');
179179
}
180-
const slideIn = $(datatarget);
181-
if (slideIn.length != 1) {
180+
const slideInFound = $.find(datatarget);
181+
if (slideInFound.length != 1) {
182182
throw new Error('Wrong slideIn');
183183
}
184184

185+
const slideIn = $(slideInFound);
185186
// slide the "new" element in
186187
slideIn.addClass(CLASS_NAMES.ACTIVE);
187188

0 commit comments

Comments
 (0)