Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to disable multiple selection #111

Open
ziaulrehman40 opened this issue May 20, 2020 · 1 comment
Open

Anyway to disable multiple selection #111

ziaulrehman40 opened this issue May 20, 2020 · 1 comment

Comments

@ziaulrehman40
Copy link
Contributor

Is there a built in way to disable multiple selection of files/folders(anything), there can be any reason to do so. We just need this functionality.

@ziaulrehman40
Copy link
Contributor Author

As a workaround in browser.js's renderActionBar method

renderActionBar(selectedItems) {
    // Disallow multiple items operations
    if (selectedItems && selectedItems.length > 1) return null

This hides action-bar if multiple items are selected.

I know this is rough patch, but I am already using complete copy of the library to customize some other behaviors, so it doesn't bite us. Posting here so it may help anyone else looking for same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant