Skip to content

Commit

Permalink
fix: CSidebar: disable 'useCapture' in overlaid sidebar closing
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed Aug 13, 2020
1 parent 59d31b7 commit 30e7004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template/CSidebar.js
Expand Up @@ -75,7 +75,7 @@ const CSidebar = props=>{
const createBackdrop = () => {
const backdrop = document.createElement('div')
if (overlaid) {
document.addEventListener('click', sidebarCloseListener, true)
document.addEventListener('click', sidebarCloseListener)
} else {
backdrop.addEventListener('click', closeSidebar)
}
Expand Down

0 comments on commit 30e7004

Please sign in to comment.