mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix issue when hitting left-arrow keyboard shortcut on a disabled and unversioned doc
This commit is contained in:
parent
5ce239d211
commit
e212f62e89
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ class app.views.ListFocus extends app.View
|
|||
onLeft: =>
|
||||
cursor = @getCursor()
|
||||
if cursor and not cursor.classList.contains(app.views.ListFold.activeClass) and cursor.parentNode isnt @el
|
||||
@focusOnNextFrame cursor.parentNode.previousSibling
|
||||
prev = cursor.parentNode.previousSibling
|
||||
@focusOnNextFrame cursor.parentNode.previousSibling if prev and prev.classList.contains(app.views.ListFold.targetClass)
|
||||
return
|
||||
|
||||
onEnter: =>
|
||||
|
|
Loading…
Reference in a new issue