Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
32ae5681
Unverified
Commit
32ae5681
authored
Jun 28, 2019
by
yann300
Committed by
GitHub
Jun 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2125 from ethereum/yann300-patch-10
Fix setting input property
parents
c9fe7c2e
a838bb08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
terminal.js
src/app/panels/terminal.js
+4
-1
No files found.
src/app/panels/terminal.js
View file @
32ae5681
...
...
@@ -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
}
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment