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

pull/1721/head
Lucas Fernandes Nogueira 9 months ago committed by GitHub
parent de04935b2f
commit 0cb99bdaf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save