Skip to content

Commit 40250e0

Browse files
author
FezVrasta
committed
fixed problem with new focus effect of checkboxes
1 parent 323c430 commit 40250e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/material.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
$(function (){
44

5-
ripples.init(".btn:not(.btn-link), .navbar a, .nav-tabs a, .withripple");
5+
if (ripples) {
6+
ripples.init(".btn:not(.btn-link), .navbar a, .nav-tabs a, .withripple");
7+
}
68

79
var initInputs = function() {
810
// Add fake-checkbox to material checkboxes
@@ -44,6 +46,10 @@ $(function (){
4446
});
4547
}
4648

49+
$(document).on("change", ".checkbox input", function() {
50+
$(this).blur();
51+
});
52+
4753
$(document).on("keyup change", ".form-control", function() {
4854
var self = $(this);
4955
setTimeout(function() {

0 commit comments

Comments
 (0)