codeant-ai-for-open-source[bot] commented on PR #36889:
URL: https://github.com/apache/superset/pull/36889#issuecomment-3771704498

   ## **Sequence Diagram**
   
   Shows how the PR customizes the PointerSensor activators to prevent drag 
activation when the user interacts with editable tab title fields, preserving 
normal text editing instead of starting a tab reorder.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant Browser
       participant PointerSensor
       participant DndContext
       participant TabsRenderer
   
       User->>Browser: pointerdown on tab title (target)
       Browser->>PointerSensor: onPointerDown event (nativeEvent)
       PointerSensor->>PointerSensor: isInteractiveElement(target)?
       alt target is input/textarea/contentEditable
           PointerSensor-->>Browser: return false (no activation)
           Browser-->>User: show text cursor / allow editing
       else non-interactive target
           PointerSensor->>DndContext: onActivation -> start drag
           DndContext-->>TabsRenderer: onDragStart -> setActiveId
           DndContext->>DndContext: drag and drop occurs
           DndContext-->>TabsRenderer: onDragEnd -> call onTabsReorder (if 
moved)
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to