Skip to content

Commit

Permalink
Merge pull request #418 from enonic/issue-417
Browse files Browse the repository at this point in the history
Opening multiple contents for editing will make the last one freeze #417
  • Loading branch information
alansemenov committed Mar 30, 2018
2 parents 5fa1235 + 71bb433 commit 586ab35
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -130,7 +130,8 @@ module api.ui.toolbar {
if (button.isVisible()) {
return this.getChildren().filter((child) => child.getId() == button.getId())[0];
}
if (button.getParentElement() != button.getPreviousElement().getParentElement()) {
const prevEl = button.getPreviousElement();
if (prevEl && button.getParentElement() != prevEl.getParentElement()) {
return null;
}
button = button.getPreviousElement();
Expand Down

0 comments on commit 586ab35

Please sign in to comment.