Prevent dragging library tab
This commit is contained in:
parent
ba0475810c
commit
16cadf1de7
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ const TabBar = forwardRef(function (props, ref) {
|
|||
function handleDragStart(event, id, index) {
|
||||
// Library tab is not draggable
|
||||
if (index === 0) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
event.dataTransfer.effectAllowed = 'move';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue