Skip to content

Commit

Permalink
Merge pull request #11575 from keymanapp/fix/developer/11573-save-sel…
Browse files Browse the repository at this point in the history
…ection-when-loading-state

fix(developer): save touch layout editor selection when loading state
  • Loading branch information
mcdurdin authored Jun 2, 2024
2 parents 50a4ff9 + 193250d commit b22bf72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions developer/src/tike/xml/layoutbuilder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,11 @@ $(function() {
// The last selected presentation is no longer available; select the first option instead
$('#selPlatformPresentation').val($('#selPlatformPresentation option:first').val());
}

let selection = builder.saveSelection();
builder.prepareLayer();
builder.restoreSelection(selection);

if(data.layer && KVKL[builder.lastPlatform][data.layer]) {
$('#selLayer').val(data.layer);
builder.selectLayer();
Expand Down

0 comments on commit b22bf72

Please sign in to comment.