Skip to content

Commit 43f89a2

Browse files
committed
add defaultdata to submitDialogForm
Adding content of prompt even for regular form submit outside clicks e.g. by clicking enter
1 parent e4b042e commit 43f89a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/plugin/js/mixins/dialog-mixin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363
this.options.reverse ? this.proceed(this.getDefaultData()) : this.cancel()
6464
},
6565
submitDialogForm () {
66-
this.okBtnDisabled || this.proceed()
66+
this.okBtnDisabled || this.proceed(this.getDefaultData())
6767
},
6868
getDefaultData () {
6969
return this.isPrompt ? this.input : null

0 commit comments

Comments
 (0)