Skip to content

Commit

Permalink
Fix: keep element selection after layer move up/down (#29634)
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera authored Jan 30, 2019
1 parent 15f95e8 commit 74babb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/canvas/public/state/middleware/aeroelastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,10 @@ export const aeroelastic = ({ dispatch, getState }) => {
populateWithElements(page);
}

if (action.type !== setMultiplePositions.toString()) {
if (
action.type !== setMultiplePositions.toString() &&
action.type !== elementLayer.toString()
) {
unselectShape(prevPage);
}

Expand Down

0 comments on commit 74babb2

Please sign in to comment.