bug or feature-request labelfeature-request
bug or featureCurrently, a few plugins are added by default including Focusable.
We're implementing our own keyboard control, and Focusable is adding tabindex attributes to nodes that shouldn't have them.
The docs say to disable plugins using sortable.removePlugin(Draggable.Plugins.Focusable), but it appears that by the time this code runs, the Focusable plugin has already modified the DOM.
const sortable = new Sortable(element, {});
sortable.removePlugin(Draggable.Plugins.Focusable);
console.log("Expect to be -1: ", element.tabIndex)
As a work-around, I need to manually update the tabIndex values after removing the plugin.
A quick and dirty workaround for this is to delete Draggable.Plugins.Focusable before constructing the Draggable/Sortable.
Sorry for late respond, I just joined maintainers team,
For this problem, I think we should have an option to allow user disable built-in plugins before constructing the Draggable/Sortable.
The other side, Focusable plugin itself should remove all modifications when it was removed.
I will try to create PR at this weekend 馃槃
thanks!
Most helpful comment
Sorry for late respond, I just joined maintainers team,
For this problem, I think we should have an option to allow user disable built-in plugins before constructing the Draggable/Sortable.
The other side,
Focusableplugin itself should remove all modifications when it was removed.I will try to create PR at this weekend 馃槃