fix: ctrl + enter in forms, close #362
This commit is contained in:
1 parent
b7e503ae4f
commit
5ea1f2e0cf
2 files changed
+11
-3
No files matched your search
@@ -17,7 +17,10 @@
|
||||
export let rows: number = 7
|
||||
export let placeholder: string | undefined = undefined
|
||||
|
||||
const dispatch = createEventDispatcher<{ comment: CommentResponse }>()
|
||||
const dispatch = createEventDispatcher<{
|
||||
comment: CommentResponse
|
||||
confirm: string
|
||||
}>()
|
||||
|
||||
export let value = ''
|
||||
export let actions = true
|
||||
@@ -76,6 +79,7 @@
|
||||
on:confirm={() => {
|
||||
if (actions) {
|
||||
submit()
|
||||
dispatch('confirm', value)
|
||||
}
|
||||
}}
|
||||
on:focus
|
||||
|
||||
Reference in new issue
Block a user