Skip to content

Commit

Permalink
Use type button for the import button. Closes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 9, 2023
1 parent 41345f6 commit e68eea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openImportCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default (editor: Editor, opts: Required<PluginOptions>) => {
// Init code viewer if not yet instantiated
if (!codeEditorHtml) {
const codeViewer = this.createCodeEditor();
const btnImp = document.createElement("button");
const btnImp = document.createElement('button');
codeEditorHtml = codeViewer.codeEditor;
this.codeEditorHtml = codeEditorHtml;

Expand All @@ -65,6 +65,7 @@ export default (editor: Editor, opts: Required<PluginOptions>) => {

// Init import button
btnImp.innerHTML = opts.modalBtnImport;
btnImp.type = 'button';
btnImp.className = `${pfx}btn-prim ${pfx}btn-import`;
btnImp.style.alignSelf = 'flex-start';
btnImp.onclick = () => {
Expand Down

0 comments on commit e68eea5

Please sign in to comment.