File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export class Controller {
254
254
if ( this . file ) {
255
255
this . hasError = false ;
256
256
// update the label
257
- $ ( fileInput ) . next ( '.custom-file-label' ) . html ( this . fileNameAndSize ) ;
257
+ $ ( fileInput ) . next ( '.custom-file-label' ) . text ( this . fileNameAndSize ) ;
258
258
}
259
259
this . scope_ . $apply ( ) ;
260
260
} ) ;
Original file line number Diff line number Diff line change @@ -177,11 +177,12 @@ Controller.prototype.init = function (element) {
177
177
if ( ! datatarget ) {
178
178
throw new Error ( 'Missing datatarget' ) ;
179
179
}
180
- const slideIn = $ ( datatarget ) ;
181
- if ( slideIn . length != 1 ) {
180
+ const slideInFound = $ . find ( datatarget ) ;
181
+ if ( slideInFound . length != 1 ) {
182
182
throw new Error ( 'Wrong slideIn' ) ;
183
183
}
184
184
185
+ const slideIn = $ ( slideInFound ) ;
185
186
// slide the "new" element in
186
187
slideIn . addClass ( CLASS_NAMES . ACTIVE ) ;
187
188
You can’t perform that action at this time.
0 commit comments