fix checkbox legacy support issue

This commit is contained in:
2023-03-31 09:33:39 +08:00
parent b04917109d
commit b9447997fe
3 changed files with 4 additions and 3 deletions

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;