Skip to content

Commit

Permalink
fix: 禁止文本标注输入框keydown事件传播
Browse files Browse the repository at this point in the history
  • Loading branch information
lijingchi committed Oct 12, 2021
1 parent f1dd0af commit 8ff6091
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default class TextAttributeClass {
}

public textKeyDown = (e: KeyboardEvent) => {
e.stopPropagation();
switch (e.keyCode) {
case EKeyCode.Enter:
this.submitTextarea();
Expand Down

0 comments on commit 8ff6091

Please sign in to comment.