Skip to content

Commit

Permalink
fix: fix return focus on keyboard-clicking media (#1306)
Browse files Browse the repository at this point in the history
fixes #1305
  • Loading branch information
nolanlawson authored Jul 7, 2019
1 parent 19566bd commit b26ec95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/_utils/delegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function onEvent (e) {
return // ignore if the user is selecting text inside the clickable area
}
}
e.preventDefault()
e.stopPropagation()
callbacks[key](e)
}
}
Expand Down

0 comments on commit b26ec95

Please sign in to comment.