From be80d26cdbb7e7a0210889d91ac8036c396abb26 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 24 Jun 2019 21:01:44 +0100 Subject: Ensure button plugin sets/removes active class correctly on page load (#28952) * Ensure correct active class is set on button toggles/checkboxes/radios on page load Sanity check, ensures that the UI visually matches the actual values/states of controls. Also ensures that if any autocomplete/autofill happened, this is visually accounted for by having the correct class set. Includes unit tests (and `autocomplete` has been removed from these as it's no longer necessary) * Remove now unnecessary autocomplete attribute As the attribute was there to force/ensure that the visual presentation matched the state, and this is now taken care of programmatically, there's no need to unnecessarily suppress autocomplete...let them autocomplete if they want to... --- js/tests/visual/button.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/tests/visual/button.html') diff --git a/js/tests/visual/button.html b/js/tests/visual/button.html index b7ba7964d..183a6ad2c 100644 --- a/js/tests/visual/button.html +++ b/js/tests/visual/button.html @@ -10,7 +10,7 @@

Button Bootstrap Visual Test

- @@ -19,13 +19,13 @@
@@ -33,13 +33,13 @@
-- cgit v1.2.3