Skip to content

Commit 8bb1ec4

Browse files
lucasfernogSir-Thom
authored andcommitted
fix(dialog): iOS file picker default to file selection instead of photo (tauri-apps#1706)
1 parent e3a7608 commit 8bb1ec4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dialog": patch:breaking
3+
---
4+
5+
If no filters are specified, the file picker dialog now defaults to a file selection instead of photos.

plugins/dialog/ios/Sources/DialogPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class DialogPlugin: Plugin {
4848

4949
let parsedTypes = parseFiltersOption(args.filters ?? [])
5050

51-
var isMedia = true
51+
var isMedia = !parsedTypes.isEmpty
5252
var uniqueMimeType: Bool? = nil
5353
var mimeKind: String? = nil
5454
if !parsedTypes.isEmpty {

0 commit comments

Comments
 (0)