diff --git a/api/js/etemplate/et2_widget_file.ts b/api/js/etemplate/et2_widget_file.ts index a1b755eeac..3bbe92887b 100644 --- a/api/js/etemplate/et2_widget_file.ts +++ b/api/js/etemplate/et2_widget_file.ts @@ -184,11 +184,11 @@ export class et2_file extends et2_inputWidget .attr("image", "attach") .attr("noSubmit", true) .appendTo(this.node); - if(this.option.label) + if(this.options.label) { this.span.attr('label', this.options.label || '') } - + let span = this.span; this.input = jQuery(document.createElement("input")) .attr("type", "file").attr("placeholder", this.options.blur)