force checkbox input to be visible (#1203)
This commit is contained in:
@@ -246,7 +246,8 @@ function isElementVisible(element) {
|
|||||||
// because they are not visible by default. We check their parent instead for visibility.
|
// because they are not visible by default. We check their parent instead for visibility.
|
||||||
if (
|
if (
|
||||||
element.tagName.toLowerCase() === "option" ||
|
element.tagName.toLowerCase() === "option" ||
|
||||||
(element.tagName.toLowerCase() === "input" && element.type === "radio")
|
(element.tagName.toLowerCase() === "input" &&
|
||||||
|
(element.type === "radio" || element.type === "checkbox"))
|
||||||
)
|
)
|
||||||
return element.parentElement && isElementVisible(element.parentElement);
|
return element.parentElement && isElementVisible(element.parentElement);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user