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
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
- Depth Texture Mode "After Opaques" breaks when "Full Screen Pass Renderer Feature" is added
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.