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
013aba89
Unverified
Commit
013aba89
authored
Jul 01, 2019
by
yann300
Committed by
GitHub
Jul 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2136 from ethereum/fixRunCommand
set isOpen to true only if there s autocomplete item to show
parents
adab5ee4
22cde50a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
auto-complete-popup.js
src/app/ui/auto-complete-popup.js
+1
-2
No files found.
src/app/ui/auto-complete-popup.js
View file @
013aba89
...
@@ -140,7 +140,6 @@ class AutoCompletePopup {
...
@@ -140,7 +140,6 @@ class AutoCompletePopup {
let
autoCompleteInput
=
textList
.
length
>
1
?
textList
[
textList
.
length
-
1
]
:
textList
[
0
]
let
autoCompleteInput
=
textList
.
length
>
1
?
textList
[
textList
.
length
-
1
]
:
textList
[
0
]
if
(
inputString
.
length
>=
2
)
{
if
(
inputString
.
length
>=
2
)
{
// more than 2 letters, start completion
// more than 2 letters, start completion
this
.
isOpen
=
true
this
.
data
.
_options
=
[]
this
.
data
.
_options
=
[]
Commands
.
allPrograms
.
forEach
(
item
=>
{
Commands
.
allPrograms
.
forEach
(
item
=>
{
const
program
=
getKeyOf
(
item
)
const
program
=
getKeyOf
(
item
)
...
@@ -171,7 +170,7 @@ class AutoCompletePopup {
...
@@ -171,7 +170,7 @@ class AutoCompletePopup {
this
.
removeAutoComplete
()
this
.
removeAutoComplete
()
return
return
}
}
if
(
this
.
data
.
_options
.
length
)
this
.
isOpen
=
true
yo
.
update
(
this
.
_view
,
this
.
render
())
yo
.
update
(
this
.
_view
,
this
.
render
())
return
true
return
true
}
}
...
...
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