You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the left and right properties are set on an element and the width pin toggle is triggered, the first time this may work correctly but if the user triggers an undo and does it again then the editor may remove both the left and right properties.
To Reproduce
Create a regular frame child element with left and right style properties.
Trigger the width pin toggle.
Undo the toggle with the undo shortcut.
Trigger the width pin toggle.
Result: Now the element only has the width horizontal style property.
Expected behaviour
The element should have the same properties that it did before the undo action.
Note
It looks to be something to do with these lines in usePinToggling:
Describe the bug
If the
left
andright
properties are set on an element and thewidth
pin toggle is triggered, the first time this may work correctly but if the user triggers an undo and does it again then the editor may remove both theleft
andright
properties.To Reproduce
left
andright
style properties.width
pin toggle.width
pin toggle.Result: Now the element only has the
width
horizontal style property.Expected behaviour
The element should have the same properties that it did before the undo action.
Note
It looks to be something to do with these lines in
usePinToggling
:As
lastHorizontalProp
being set towidth
after the first change, but doesn't get reset as a result of the undo.The text was updated successfully, but these errors were encountered: