Skip to content

Commit

Permalink
Merge pull request #1374 from microsoft/u/juliaroldi/version-bump8.35.1
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
juliaroldi authored Oct 28, 2022
2 parents 9b0d2e0 + bbd0b65 commit 587670f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roosterjs",
"version": "8.35.0",
"version": "8.35.1",
"description": "Framework-independent javascript editor",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default class AutoFormat implements EditorPlugin {
*/
dispose() {
this.editor = null;
this.lastKeyTyped = null;
}

/**
Expand All @@ -57,7 +58,7 @@ export default class AutoFormat implements EditorPlugin {
if (event.eventType === PluginEventType.KeyDown) {
const keyTyped = event.rawEvent.key;

if (keyTyped.length > 1) {
if (keyTyped && keyTyped.length > 1) {
this.lastKeyTyped = '';
}

Expand Down Expand Up @@ -98,7 +99,7 @@ export default class AutoFormat implements EditorPlugin {
);

//After the substitution the last key typed needs to be cleaned
this.lastKeyTyped = '';
this.lastKeyTyped = null;
} else {
this.lastKeyTyped = keyTyped;
}
Expand Down

0 comments on commit 587670f

Please sign in to comment.