Unverified Commit c0efceb6 authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

docs: remove duplicate code for indeterminate (#30471)

parent 7ce29d75
1 merge request!31948Examples/Floating-labels: fix bad behavior with autofill
Showing with 1 addition and 11 deletions
+1 -11
...@@ -19,16 +19,6 @@ ...@@ -19,16 +19,6 @@
return [].slice.call(list) return [].slice.call(list)
} }
(function () {
var checkbox = document.getElementById('flexCheckIndeterminate')
if (!checkbox) {
return
}
checkbox.indeterminate = true
})()
makeArray(document.querySelectorAll('.js-sidenav-group')) makeArray(document.querySelectorAll('.js-sidenav-group'))
.forEach(function (sidenavGroup) { .forEach(function (sidenavGroup) {
var groupHasLinks = Boolean(sidenavGroup.querySelector('li')) var groupHasLinks = Boolean(sidenavGroup.querySelector('li'))
......
...@@ -35,7 +35,7 @@ Our checks use custom Bootstrap icons to indicate checked or indeterminate state ...@@ -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). 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"> <div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="flexCheckIndeterminate"> <input class="form-check-input" type="checkbox" value="" id="flexCheckIndeterminate">
<label class="form-check-label" for="flexCheckIndeterminate"> <label class="form-check-label" for="flexCheckIndeterminate">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment