Skip to content

Commit

Permalink
fix: enable directory selection in file picker
Browse files Browse the repository at this point in the history
Although folder selection is possible, the callback does not receive the picked node unless `allowDirectories(true)` is explicitly set.

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Nov 29, 2024
1 parent 7d70afd commit 4944b64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Editor/Attachments/AttachmentsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export default {
async openFilesModal() {
const picker = getFilePickerBuilder(t('calendar', 'Choose a file to add as attachment'))
.setMultiSelect(false)
.allowDirectories(true)
.addButton({
label: t('calendar', 'Pick'),
type: 'primary',
Expand Down

0 comments on commit 4944b64

Please sign in to comment.