Skip to content

Commit

Permalink
fix: remove event.preventDefault()
Browse files Browse the repository at this point in the history
  • Loading branch information
idebenone committed Nov 7, 2024
1 parent 79df8b9 commit f1bde0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<div id="editorjs"></div>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest/dist/editor.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script>
<script src="../dist/code.umd.js"></script>
<script>
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,6 @@ export default class CodeTool implements BlockTool {
case 'Backspace':
if (textarea.value.length > 0) {
event.stopPropagation();
} else {
event.preventDefault();
}
break;
case 'ArrowUp':
Expand Down

0 comments on commit f1bde0c

Please sign in to comment.