mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
fix: remove click eventlistener when pref panel is hidden
This commit is contained in:
parent
5c57415a86
commit
b32151c99a
|
@ -193,7 +193,7 @@ function togglePanel() {
|
|||
toggle.setAttribute( 'aria-expanded', false );
|
||||
form.removeEventListener( 'input', setPref );
|
||||
resetButton.removeEventListener( 'click', resetPref );
|
||||
window.addEventListener( 'click', dismissOnClickOutside );
|
||||
window.removeEventListener( 'click', dismissOnClickOutside );
|
||||
window.removeEventListener( 'keydown', dismissOnEscape );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue