Skip to content

A platform for community discussion. Free, open, simple.

FIX: Regression with `onFilesPicked` action (#25819)

Keegan George10c83a80aacd
diff --git a/app/assets/javascripts/discourse/app/components/pick-files-button.js b/app/assets/javascripts/discourse/app/components/pick-files-button.js
index 465b869b933..5ecd4234488 100644
--- a/app/assets/javascripts/discourse/app/components/pick-files-button.js
+++ b/app/assets/javascripts/discourse/app/components/pick-files-button.js
@@ -91,6 +91,10 @@ export default Component.extend({
this.dialog.alert(message);
return;
}
+
+ if (typeof this.onFilesPicked === "function") {
+ this.onFilesPicked(files);
+ }
},
_haveAcceptedTypes(files) {