Skip to content

Commit 7bab4c3

Browse files
committed
bug fix
1 parent 08c7275 commit 7bab4c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/ui/components/inputDialog.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ class InputDialog {
8585
}
8686

8787

88-
present(parent) {
88+
present(options, e) {
89+
90+
this.label.textContent = options.label
91+
this._input.value = options.value
92+
this.callback = options.callback || options.click
93+
8994
this.container.style.display = 'flex';
9095
}
9196

0 commit comments

Comments
 (0)