fix(dialog): iOS file picker default to file selection instead of photo (#1706)

This commit is contained in:
Lucas Fernandes Nogueira
2024-09-02 11:43:13 -03:00
committed by GitHub
parent de04935b2f
commit 0cb99bdaf1
2 changed files with 6 additions and 1 deletions
@@ -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.
@@ -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 {