Fix setting input property

pull/3094/head
yann300 5 years ago
parent 5941bc242e
commit 54e238c2c2
  1. 5
      src/app/panels/terminal.js

@ -111,8 +111,11 @@ class Terminal extends BaseApi {
if (self._view.el) return self._view.el
self._view.journal = yo`<div class=${css.journal}></div>`
self._view.input = yo`
<span class=${css.input} spellcheck="false" onload=${() => { this.focus() }} contenteditable="true" onpaste=${paste} onkeydown=${change}></span>
<span class=${css.input} onload=${() => { this.focus() }} onpaste=${paste} onkeydown=${change}></span>
`
self._view.input.setAttribute('spellcheck', 'false')
self._view.input.setAttribute('contenteditable', 'true')
self._view.input.innerText = '\n'
self._view.cli = yo`
<div class="${css.cli}">

Loading…
Cancel
Save