Skip to content

Commit a2d5560

Browse files
committed
feat: stop event propagation of input box to better fit certain websites like Notion (#106)
1 parent 6cee31c commit a2d5560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/InputBox/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function InputBox({ onSubmit, enabled }) {
1111
})
1212

1313
const onKeyDown = (e) => {
14+
e.stopPropagation()
1415
if (e.keyCode === 13 && e.shiftKey === false) {
1516
e.preventDefault()
1617
if (!value) return

0 commit comments

Comments
 (0)