Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
1aed3145
Commit
1aed3145
authored
Apr 29, 2018
by
杨奕
Committed by
GitHub
Apr 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: fix infinite loop of keyboard navigation when all filtered options are disabled (#10945)
parent
16dc174a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
packages/select/src/navigation-mixin.js
packages/select/src/navigation-mixin.js
+2
-2
No files found.
packages/select/src/navigation-mixin.js
View file @
1aed3145
...
@@ -7,7 +7,7 @@ export default {
...
@@ -7,7 +7,7 @@ export default {
computed
:
{
computed
:
{
optionsAllDisabled
()
{
optionsAllDisabled
()
{
return
this
.
options
.
length
===
this
.
options
.
filter
(
item
=>
item
.
disabled
===
true
).
length
;
return
this
.
options
.
filter
(
option
=>
option
.
visible
).
every
(
option
=>
option
.
disabled
)
;
}
}
},
},
...
@@ -47,8 +47,8 @@ export default {
...
@@ -47,8 +47,8 @@ export default {
!
option
.
visible
)
{
!
option
.
visible
)
{
this
.
navigateOptions
(
direction
);
this
.
navigateOptions
(
direction
);
}
}
}
this
.
$nextTick
(()
=>
this
.
scrollToOption
(
this
.
hoverOption
));
this
.
$nextTick
(()
=>
this
.
scrollToOption
(
this
.
hoverOption
));
}
}
}
}
}
};
};
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