Prevent dragging library tab

This commit is contained in:
Abe Jellinek 2023-12-15 17:11:13 -05:00 committed by Dan Stillman
parent ba0475810c
commit 16cadf1de7

View file

@ -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';