Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X

Votes

0

Found in

2021.3.40f1

2022.3.39f1

6000.0.13f1

7000.0.0a1

Issue ID

UUM-76948

Regression

No

Undoing Inspector value change in UI Builder with option still selected leads to unexpected undo order

--

-

*Steps to reproduce:*
# Open a Unity project
# Open the UI Builder via Window > UI Toolkit > UI Builder
# Create a Visual Element by dragging it from the Library to the Hierarchy
# Make sure the Visual Element is selected and that it's details are visible in the Inspector
# Find and expand the Width options under Inlined Styles > Border > Width
# Change Top from 0 to 2 and press enter
# Change Right from 0 to 2 and press enter
# Change Bottom from 0 to 2 and *don't* press enter
# Press Ctrl + Z to undo then observe results
# Press Ctrl + Z to undo then observe results

*Actual results:* On the first undo, the Right Width option is undone instead of the most recent changes to the Bottom Width option. 

On the second undo, both the Bottom and Top Width options are undone at the same time.

*Expected results:* The options are undone in the order they are edited (Bottom -> Right -> Top)

*Reproducible with versions:* 
* 6000.0.13f1
* 2022.3.39f1 (check notes)
* 2021.3.40f1 (check notes)

*Not reproducible with versions:* -

*Can’t test with versions:* -

*Tested on (OS):* Windows 10. Windows 11

*Notes:*
* While the bug is reproduceable on 2022.3. and 2021.3, it is slightly different. On the first undo, it will undo the Bottom Width option (as expected) but also the Right Width option at the same time (unexpected)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.