diff --git a/.changes/fix-ios-file-dialog-default-mode.md b/.changes/fix-ios-file-dialog-default-mode.md new file mode 100644 index 0000000000..4032159616 --- /dev/null +++ b/.changes/fix-ios-file-dialog-default-mode.md @@ -0,0 +1,5 @@ +--- +"dialog": patch:breaking +--- + +If no filters are specified, the file picker dialog now defaults to a file selection instead of photos. diff --git a/plugins/dialog/ios/Sources/DialogPlugin.swift b/plugins/dialog/ios/Sources/DialogPlugin.swift index cb8f19e430..5e8d9e4289 100644 --- a/plugins/dialog/ios/Sources/DialogPlugin.swift +++ b/plugins/dialog/ios/Sources/DialogPlugin.swift @@ -48,7 +48,7 @@ class DialogPlugin: Plugin { let parsedTypes = parseFiltersOption(args.filters ?? []) - var isMedia = true + var isMedia = !parsedTypes.isEmpty var uniqueMimeType: Bool? = nil var mimeKind: String? = nil if !parsedTypes.isEmpty {