FIXED: Use Drag/Drop Callbacks broken in 2025?

Hello! I’m finding issues with drag/dropping arbitrary data in the latest build. Whereas on older builds you could drop any data so long as onHoverStartGetAccept returned True, now it seems that only dragItems of a particular structure (e.g [type:containerCOMP]) are accepted. Please see the attached minimal reproduction case, which opens in both a 2023 and 2025 build to compare.

useDragDropCallbacks.tox (8.7 KB)

Testing Procedure:

  1. Open textport to view logs
  2. Drag 1st comp into the 2nd comp
  3. Verify the 2nd comp’s onDropGetResults callback fires (printed log)
  4. Now uncomment out line 3 of 1st comp’s onDragStartGetItems so that dragItems = [“hello”]
  5. Repeat steps 2-3. In TD 2023 we see the expected firing of onDropGetResults, but in 2025, the method only fires when dragItems = [comp]

Tested on Windows 11 and macOS, TD versions 2023.12370 and 2025.31550

+1
Every morning I pray to the UI gods:

Good find. Will be fixed in next release. For now, I see that [comp, ‘hello’] works so that’s your annoying but functional workaround to pass text!

1 Like

Awesome, seems to be a viable workaround for now- will update my scripts accordingly, thanks Ivan!

This will be fixed in builds 2025.31920 and later. As Ivan mentioned, it was rejecting anything without COMPs in the dragItem lists.
Sorry bout that.

1 Like