From 10c83a80aacd6194e302e65860d5ae3957ae38b9 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Thu, 22 Feb 2024 12:03:05 -0800 Subject: [PATCH] FIX: Regression with `onFilesPicked` action (#25819) --- .../javascripts/discourse/app/components/pick-files-button.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {