aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToby Zerner <[email protected]>2022-02-01 17:40:59 +1100
committerGitHub <[email protected]>2022-02-01 08:40:59 +0200
commit22bbff0b037de5e4cf9a44273c4383a27b9f274e (patch)
tree7094d6ab32f4f360ed9363021d8dc4d00926ad77
parent9d44b603d5bc4380eba162d6c1b0b7b763ec607b (diff)
downloadbootstrap-22bbff0b037de5e4cf9a44273c4383a27b9f274e.tar.xz
bootstrap-22bbff0b037de5e4cf9a44273c4383a27b9f274e.zip
Remove incorrect statement about the disabled attribute on <form> (#35713)
> You can disable every form element within a form with the `disabled` attribute on the `<form>`. I really want to be mistaken, because this would be a very useful feature! But I don't believe it's true. I can't find anything about this on MDN Web Docs, and adding the `disabled` attribute to a `<form>` does nothing on any browser in my testing. The `disabled` attribute on a `<fieldset>` does disable all descendant form controls – perhaps that's where the mixup has come from.
-rw-r--r--site/content/docs/5.1/forms/layout.md1
1 files changed, 0 insertions, 1 deletions
diff --git a/site/content/docs/5.1/forms/layout.md b/site/content/docs/5.1/forms/layout.md
index 47e2f8ab7..21423040e 100644
--- a/site/content/docs/5.1/forms/layout.md
+++ b/site/content/docs/5.1/forms/layout.md
@@ -12,7 +12,6 @@ Every group of form fields should reside in a `<form>` element. Bootstrap provid
- New to browser forms? Consider reviewing [the MDN form docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) for an overview and complete list of available attributes.
- `<button>`s within a `<form>` default to `type="submit"`, so strive to be specific and always include a `type`.
-- You can disable every form element within a form with the `disabled` attribute on the `<form>`.
Since Bootstrap applies `display: block` and `width: 100%` to almost all our form controls, forms will by default stack vertically. Additional classes can be used to vary this layout on a per-form basis.