]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update buttons.less to disable btn pointer events 7258/head
authorAdam Conrad <acconrad@gmail.com>
Tue, 12 Mar 2013 20:58:41 +0000 (17:58 -0300)
committerAdam Conrad <acconrad@gmail.com>
Tue, 12 Mar 2013 20:58:41 +0000 (17:58 -0300)
Buttons that are disabled are still clickable and can still fire click events (such as hopping up to the top of the page if your anchor href points to "#"). Adding the pointer-events:none property will truly disable the button so situations like this don't happen. 

less/buttons.less

index 7eaaeb13fa0b3f3c15b1c44944b660e5ee4e28b3..9d53e501641a95d41c69d7d2ee0ac841aaf399f8 100644 (file)
@@ -42,6 +42,7 @@
   &[disabled],
   fieldset[disabled] & {
     cursor: default;
+    pointer-events: none;
     .opacity(.65);
     .box-shadow(none);
   }