fix: input type error
This commit is contained in:
parent
610da9d2e2
commit
3bdc6828c0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user