aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/navigate.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 13:33:51 +0100
committer0neGal <mail@0negal.com>2024-12-20 13:33:51 +0100
commitf15538e4dd5b7ddec3165dfb275ce1c2d7cd34ea (patch)
treeca2cc5ad092a3e6919b8faecfe742ddcbe087428 /src/app/js/navigate.js
parentf660a6bc05781ad5722fc6ade2b8f94471875fc4 (diff)
downloadViper-f15538e4dd5b7ddec3165dfb275ce1c2d7cd34ea.tar.gz
Viper-f15538e4dd5b7ddec3165dfb275ce1c2d7cd34ea.zip
fixed navigate.select() not working on switches
Diffstat (limited to 'src/app/js/navigate.js')
-rw-r--r--src/app/js/navigate.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/js/navigate.js b/src/app/js/navigate.js
index 18c32b3..5665687 100644
--- a/src/app/js/navigate.js
+++ b/src/app/js/navigate.js
@@ -478,6 +478,7 @@ navigate.select = () => {
// if `active` is a switch, use `settings.popup.switch()` on it,
// to be able to toggle it
if (active.closest(".switch")) {
+ active.closest(".switch").click();
settings.popup.switch(active.closest(".switch"));
return;
}