unable to filter files on File.openDialog on MacOs
hey,
I'm calling this line:
File.openDialog(false, filterTypes, true)
var filterTypes = function (file) {
file.name.match(/\.mp4$/i) || file.type == "MP4"
}
But no matter what I try, the Explorer does not filter any files. I also tried to pass a function that only return false, tried passing a string filter, but had no success.
I followed the docs:
"A filter that limits the types of files displayed in the dialog. In Windows,a filter expression such as "Javascript files:*.jsx;All files:*.*". In Mac OS, a filter function that takes a File instance and returns true if the file should be included in the display, false if it should not."
thanks
