fix(chan): remove onara card highlight when closing onara modal
This commit is contained in:
@@ -2550,7 +2550,7 @@ window.cancelAnimFrame = (function () {
|
||||
modal.setAttribute('aria-hidden', 'true');
|
||||
modal.classList.remove('onara-fade-out', 'onara-fade-in');
|
||||
document.body.classList.remove('onara-modal-open', 'onara-modal-closing');
|
||||
document.querySelectorAll('.onara-active').forEach(el => el.classList.remove('onara-active'));
|
||||
document.querySelectorAll('.onara-active, .active-thread-post').forEach(el => el.classList.remove('onara-active', 'active-thread-post'));
|
||||
if (typeof window.applyBackgroundOpacitySettings === 'function') {
|
||||
window.applyBackgroundOpacitySettings(null, false);
|
||||
}
|
||||
@@ -2584,7 +2584,7 @@ window.cancelAnimFrame = (function () {
|
||||
|
||||
// Now that modal is completely invisible, smoothly restore background state
|
||||
document.body.classList.remove('onara-modal-open', 'onara-modal-closing');
|
||||
document.querySelectorAll('.onara-active').forEach(el => el.classList.remove('onara-active'));
|
||||
document.querySelectorAll('.onara-active, .active-thread-post').forEach(el => el.classList.remove('onara-active', 'active-thread-post'));
|
||||
if (typeof window.applyBackgroundOpacitySettings === 'function') {
|
||||
window.applyBackgroundOpacitySettings(null, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user