fix: input type error

This commit is contained in:
Safwan Samsudeen 2024-12-11 23:23:46 +05:30
parent 610da9d2e2
commit 3bdc6828c0

View File

@ -608,7 +608,7 @@
let label = details[id];
let val;
if (e.currentTarget.type === 'switch') {
if (e.currentTarget.type === 'checkbox') {
if (typeof label === 'string') {
let opposite = label.slice(0, 5) === 'opp__';
if (opposite) label = label.slice(5);