Skip to content

Commit 541aa9d

Browse files
committed
fix: redraw after collecting files
1 parent c8d8522 commit 541aa9d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

js/dist/forum.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dist/forum.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/forum/handler/Uploader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export default class Uploader {
2727
this.uploading = true;
2828
this.dispatch('uploading', files);
2929

30-
m.redraw(); // Forcing a redraw so that the button also updates if uploadFiles() is called from DragAndDrop or PasteClipboard
31-
3230
const body = new FormData();
3331

3432
for (let i = 0; i < files.length; i++) {
3533
body.append('files[]', files[i]);
3634
}
3735

36+
m.redraw(); // Forcing a redraw so that the button also updates if uploadFiles() is called from DragAndDrop or PasteClipboard
37+
3838
// Use fetch instead of app.request (XHR) to work around a bug introduced in iOS 26.5.2 where WebKit drops the multipart payload.
3939
return fetch(app.forum.attribute('apiUrl') + '/fof/upload', {
4040
method: 'POST',

0 commit comments

Comments
 (0)