aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-03-28 11:41:03 +0200
committerGitHub <[email protected]>2020-03-28 11:41:03 +0200
commitc0efceb6d586cff4256478fb1e242c6075248f72 (patch)
treee4b2df23f99dd1939ccc852e563cadf91d9c4eeb
parent7ce29d75f38f2c81f57e8a6cf14c510655e2e316 (diff)
downloadbootstrap-c0efceb6d586cff4256478fb1e242c6075248f72.tar.xz
bootstrap-c0efceb6d586cff4256478fb1e242c6075248f72.zip
docs: remove duplicate code for indeterminate (#30471)
-rw-r--r--site/assets/js/application.js10
-rw-r--r--site/content/docs/4.3/forms/checks.md2
2 files changed, 1 insertions, 11 deletions
diff --git a/site/assets/js/application.js b/site/assets/js/application.js
index d5a68c7e1..c825d7373 100644
--- a/site/assets/js/application.js
+++ b/site/assets/js/application.js
@@ -19,16 +19,6 @@
return [].slice.call(list)
}
- (function () {
- var checkbox = document.getElementById('flexCheckIndeterminate')
-
- if (!checkbox) {
- return
- }
-
- checkbox.indeterminate = true
- })()
-
makeArray(document.querySelectorAll('.js-sidenav-group'))
.forEach(function (sidenavGroup) {
var groupHasLinks = Boolean(sidenavGroup.querySelector('li'))
diff --git a/site/content/docs/4.3/forms/checks.md b/site/content/docs/4.3/forms/checks.md
index 6b90fb9bf..e189d1bb9 100644
--- a/site/content/docs/4.3/forms/checks.md
+++ b/site/content/docs/4.3/forms/checks.md
@@ -35,7 +35,7 @@ Our checks use custom Bootstrap icons to indicate checked or indeterminate state
Checkboxes can utilize the `:indeterminate` pseudo class when manually set via JavaScript (there is no available HTML attribute for specifying it).
-{{< example >}}
+{{< example class="bd-example-indeterminate">}}
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="flexCheckIndeterminate">
<label class="form-check-label" for="flexCheckIndeterminate">