fix checkbox legacy support issue

This commit is contained in:
tsanie committed 2023-03-31 09:33:39 +08:00
1 parent b04917109d
commit b9447997fe
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -56,7 +56,8 @@ function resolveCheckbox(container, legacy) {
if (legacy) {
const checks = container.querySelectorAll('input[type="checkbox"]');
for (let chk of checks) {
if (chk.parentElement.querySelector('layer.check-box-inner') != null) {
if (chk.parentElement.classList.contains('checkbox-wrapper')) {
// skip
continue;
}
const id = chk.id;