[Bug]: Pulse effect to perform false trigger on the pulse wave
afarago opened this issue · 0 comments
afarago commented
Before submitting...
- I have searched for duplicate or closed issues.
- I have read the CONTRIBUTING document and my issue is following the guidelines.
- I have read the template completely before filling it in.
Context
I have created two adjacent buttons for the user to choose from with a pulse effect. The pulse effect caused unexpected trigger of buttons and even false triggers.
Current Behavior
The problem is coming up if there are multiple elements with pulse effect. When you click on the item the topmost (placing order or z-index) will get the click event.
The pulse will even overlap to the adjacent item.
Expected behavior
When clicking adjacent with a click handler to an element with pulse effect on I expect nothing to happen.
I think the right element should be clicked when one click on the element, and for the white-space, either no click handler or the current behaviour.
Possible Solutions or Causes
I was able to circumvent the problem by adding
.pulse::before {
pointer-events: none;
}
Steps to reproduce
- Add any two buttons even as suggested in the documentation.
- Just leave the display: flex from the container to keep them close
- Try to click on the first button (when the pulse wave gets to the leftmost point from the right button)
- Check: is the first first button clicked?
<div id="test">
<a class="btn-floating pulse"><i class="material-icons">menu</i></a>
<a class="btn-floating btn-large pulse"><i class="material-icons">cloud</i></a>
<a class="btn-floating btn-large cyan pulse"><i class="material-icons">edit</i></a>
</div>
<script>
$("#test a:nth-child(1)").click(()=>console.log("first"));
$("#test a:nth-child(2)").click(()=>console.log("second"));
$("#test a:nth-child(3)").click(()=>console.log("third"));
</script>
Your Environment
- Version used: 1.2.1
- Browser Name and version: Version 108.0.5359.72 (Official Build) (64-bit)
- Operating System and version (desktop or mobile): Windows, desktop, 11
- Additional information you want to tell us: