Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant