Default tab doesn't work


#1

Hi,

It looks like only files tab is able to be opened by default.

if I try this:
let dialog = uploadcare.openDialog(null, [ ‘gdrive’ ], settings);
I get an empty widget.

Tried with gdrive, facebook, skydrive, dropbox… nothing works as expected.


#2

if I, however, do something like

let dialog = uploadcare.openDialog(null, [ 'file'], settings);
dialog.switchTab( ‘gdrive’);

required tab will be opened.


#3

Hi @Andrii-A

The second argument of the openDialog method should be a string with a tab name, not an array. For example,

let dialog = uploadcare.openDialog(null, 'gdrive', {});

Hope that helps.


#4

Works, thank you.

I made an array, because it is shown as an array in the doc:


#5

Thanks for bringing this to our attention, it looks misleading. We’ll fix it.