keyboard: Fix JS warning
The label field may be empty here (eg. buttons fully styled through css), just resort to an empty string then.
This commit is contained in:
parent
545d49c70d
commit
bb215966e5
@ -802,7 +802,7 @@ var Keyboard = class Keyboard {
|
||||
let switchToLevel = key.level;
|
||||
let action = key.action;
|
||||
|
||||
extraButton = new Key(key.label, []);
|
||||
extraButton = new Key(key.label || '', []);
|
||||
|
||||
extraButton.keyButton.add_style_class_name('default-key');
|
||||
if (key.extraClassName != null)
|
||||
|
Loading…
Reference in New Issue
Block a user