Search Issue Tracker
By Design
Votes
0
Found in
2021.3.30f1
2022.3.9f1
2023.1.12f1
Issue ID
UUM-47804
Regression
No
Delegate registered through ListView.RegisterCallback<ClickEvent> method gets passed an incorrect target
Reproduction steps:
1. Open the "IN-53068.zip" project
2. Open "Assets/Scenes/SampleScene"
3. Enter Play mode
4. Press on the "hello0" Button and observe the Console
Expected results: "target: Button" is printed to the Console
Actual results: "target: ListView" is printed to the Console
Reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.12f1, 2023.2.0a5
Not reproducible with: 2023.2.0b8, 2023.3.0a4
Fixed in: 2023.2.0a6
Reproducible on: macOS 13.4.1 (M1, Intel)
Not reproducible on: No other environment tested
Note: Reproducible in Standalone Player
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
- Editor crashes on D3D12GetInterface when repeatedly enabling and disabling 256 text components
Resolution Note:
ListView is a composite root, which makes the event set its target to it before trggering its callbacks. The composite root mechanisms are still internal in UI Toolkit so there is no way right now to go around this ambiguity, unfortunately. This is changed in 2023.2 and beyond.