1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 21:22:52 +02:00

Docs: add indeterminate disabled checkbox example (#36674)

This commit is contained in:
Julien Déramond
2022-07-06 07:43:38 +02:00
committed by GitHub
parent 22c7503c88
commit 6cf72530ed
2 changed files with 10 additions and 2 deletions

View File

@@ -102,7 +102,9 @@
// Indeterminate checkbox example in docs and StackBlitz
document.querySelectorAll('.bd-example-indeterminate [type="checkbox"]')
.forEach(checkbox => {
checkbox.indeterminate = true
if (checkbox.id.includes('Indeterminate')) {
checkbox.indeterminate = true
}
})
// -------------------------------