Skip to content

Commit

Permalink
fix(clayui.com): fixes the error when trying to iterate through a Nod…
Browse files Browse the repository at this point in the history
…eList
  • Loading branch information
matuzalemsteles committed Sep 23, 2020
1 parent e9fca5d commit 64e922a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions clayui.com/src/templates/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ export default (props) => {
}, []);

useEffect(() => {
document
.querySelectorAll('.clay-site-custom-checkbox-indeterminate')
.forEach((item) => {
item.indeterminate = true;
});
const elements = document.querySelectorAll(
'.clay-site-custom-checkbox-indeterminate'
);

[...elements].forEach((item) => {
item.indeterminate = true;
});
}, []);

return (
Expand Down

0 comments on commit 64e922a

Please sign in to comment.