Skip to content

Commit

Permalink
fix(Keyboard): adding a check if currentFormat is valid before callin…
Browse files Browse the repository at this point in the history
…g capitalize on it
  • Loading branch information
slhay28 committed Feb 19, 2024
1 parent cc31852 commit 8504172
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ export default class Keyboard extends Base {
}

get _currentKeyboard() {
return this.tag(capitalize(this._currentFormat));
return this._currentFormat
? this.tag(capitalize(this._currentFormat))
: null;
}

set columnCount(columnCount) {
Expand Down

0 comments on commit 8504172

Please sign in to comment.