mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-08 06:57:29 +00:00
Merge pull request #2726 from keymanapp/fix/developer/2712-crash-switching-template
fix(developer): crash when switching layout templates
This commit is contained in:
commit
b00a30139a
1 changed files with 1 additions and 1 deletions
|
|
@ -1328,7 +1328,7 @@ $(function () {
|
|||
|
||||
$('.skcontrol.wedge-horz,.skcontrol.wedge-vert,div#btnDelSubKey,input#inpSubKeyCap').css('display', '');
|
||||
builder.selectedKey().removeClass('selected');
|
||||
if (key) {
|
||||
if (key && $(key).length) {
|
||||
$(key).addClass('selected');
|
||||
$('.kcontrol.wedge-horz,.kcontrol.wedge-vert,div#btnDelKey,input#inpKeyCap').css('display', 'block');
|
||||
var rowOffset = $(key).parent().offset();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue