Unverified Commit 32ae5681 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2125 from ethereum/yann300-patch-10

Fix setting input property
parents c9fe7c2e a838bb08
......@@ -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}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment