Skip to content

Commit

Permalink
🐛 Fixed: Couldn't modify shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Apr 19, 2021
1 parent 6990470 commit d51484b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graviton",
"version": "2.2.9",
"version": "2.3.0",
"description": "A code editor.",
"repository": "https://github.com/Graviton-Code-Editor/Graviton-App",
"homepage": "https://graviton.netlify.app",
Expand Down
6 changes: 3 additions & 3 deletions src/interface/utils/dialogs/dialog_input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function InputDialog({ title, placeHolder = '', type = 'input', content }: Input
inputComponent,
},
})`
<div class="${customStyle}" id="${randomSelector}">
<div class="${customStyle}" >
${
content
? element({
Expand All @@ -67,7 +67,7 @@ function InputDialog({ title, placeHolder = '', type = 'input', content }: Input
})`<Text>${content}</Text>`
: ''
}
<inputComponent mounted="${inputMounted}" placeHolder="${placeHolder}" :keyup="${onEnter}"/>
<inputComponent id="${randomSelector}" mounted="${inputMounted}" placeHolder="${placeHolder}" :keyup="${onEnter}"/>
</div>
`
const DialogInstance = new Dialog({
Expand All @@ -78,7 +78,7 @@ function InputDialog({ title, placeHolder = '', type = 'input', content }: Input
{
label: 'misc.Continue',
action() {
const inputValue: string = (document.getElementById(randomSelector.toString()).children[0] as HTMLInputElement).value
const inputValue: string = (document.getElementById(randomSelector.toString()) as HTMLInputElement).value
if (inputValue != '') {
resolve(inputValue)
} else {
Expand Down

0 comments on commit d51484b

Please sign in to comment.