Skip to content

Commit 3bbbf01

Browse files
jdorn#743 Upload bug (jdorn#773)
Co-authored-by: German Bisurgi <[email protected]>
1 parent a64f486 commit 3bbbf01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/editors/upload.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class UploadEditor extends AbstractEditor {
229229
}
230230

231231
this.options.upload_handler(this.path, file, {
232-
success (url) {
232+
success: (url) => {
233233
this.setValue(url)
234234

235235
if (this.parent) this.parent.onChildEditorChange(this)
@@ -238,12 +238,12 @@ export class UploadEditor extends AbstractEditor {
238238
if (this.progressBar) this.preview.removeChild(this.progressBar)
239239
uploadButton.removeAttribute('disabled')
240240
},
241-
failure (error) {
241+
failure: (error) => {
242242
this.theme.addInputError(this.uploader, error)
243243
if (this.progressBar) this.preview.removeChild(this.progressBar)
244244
uploadButton.removeAttribute('disabled')
245245
},
246-
updateProgress (progress) {
246+
updateProgress: (progress) => {
247247
if (this.progressBar) {
248248
if (progress) this.theme.updateProgressBar(this.progressBar, progress)
249249
else this.theme.updateProgressBarUnknown(this.progressBar)

0 commit comments

Comments
 (0)