mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-20 13:40:42 +03:00
Fixes problem where ripples would stop clicks from going through on Firefox, and prevents double-clicks from happening in Chrome. Closes #20
This commit is contained in:
parent
218e4ae779
commit
f698354525
|
@ -65,6 +65,11 @@ var ripples = {
|
|||
|
||||
}, rippleStartTime);
|
||||
|
||||
if (target.tagName == 'A' || target.parentNode.tagName == 'A') {
|
||||
if (e.buttons == 1) {
|
||||
target.click();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var rippleOut = function($ripple) {
|
||||
|
@ -73,7 +78,6 @@ var ripples = {
|
|||
|
||||
// Let ripple fade out (with CSS)
|
||||
setTimeout(function() {
|
||||
$ripple.parentNode.parentNode.click();
|
||||
$ripple.remove();
|
||||
}, rippleOutTime);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user