Skip to content

Commit 5344766

Browse files
fix a prompt promise resolve bug
1 parent 8377c51 commit 5344766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var initInstance = function() {
6666
if ($type === 'confirm' || $type === 'prompt') {
6767
if (action === 'confirm') {
6868
if (instance.showInput) {
69-
currentMsg.resolve(instance.inputValue, action);
69+
currentMsg.resolve({ value: instance.inputValue, action });
7070
} else {
7171
currentMsg.resolve(action);
7272
}

0 commit comments

Comments
 (0)