Some element move actions are not working
Describe the problem
In the Application Builder's Editor Page there are two bugs related to moving elements via clicking the move buttons.
1. Can't Move the Last Element Upward
If you select the last element and click the "move up" button (see screenshot), the element does not move. We expect the element to move up one position.
Note that the keyboard shortcut works as expected. I.e. modifier + up arrow
will move the element upwards.
2. First Element Moves to the Last Position
If you select the first element then click the "move down" button, it moves immediately to the last position. We expect the element to move down one position.
Similar to the first bug, the keyboard shortcut works as expected (modifier + down arrow
).
Steps to reproduce
As mentioned above, there are two separate but related bugs.
-
Select the last element and click the "up" icon. You'll notice that the element does not move at all. We expect the element to move up on position.
-
Select the first element in the Builder/Editor page and click the "down" icon. You'll notice that the element jumps all the way to the bottom, becoming the very last item. What we actually expect is for it to only move down one position.