-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: small ion-fab-button with a ion-fab-list has a wrong click event area #21772
Comments
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. We add margin to the inner |
@liamdebeasi Okay thanks .. I still don't get why clicking into the margin of the ion-fab-button opens the ion-fab-list but do not trigger the cursor, ripple effect, and click event of the ion-fab-button then .. I thought it was wrongly binded to the ion-fab area ? |
Oh I didn't even notice that. The ripple effect only fires when you click the The ripple effect not firing is probably a bug. |
This issue has been labeled as If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort. For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation. Thank you! |
@liamdebeasi Yeah that's my issue! Because I need to catch when the
There's also the cursor that's not into "click" (pointer) mode. If I have time I'll try to look into it and work on a bugfix but I'm not sure I'm up to the task haha ^^". Maybe switching the margin to padding could work. |
What you described makes sense. Thanks for following up, otherwise I would have missed that 😄 . |
When clicking on ion-fab , the ripple effect not working. is the issue been solved? |
Can everyone try the following dev build and let me know if it resolves the issue?
Example: |
Thanks for the issue. This has been resolved via #25413, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue testing the dev build. This fix will also be available in the next nightly build of Ionic. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 5.x
Current behavior:
If a
ion-fab
has aion-fab-button size="small"
with aion-fab-list
, the area of theion-fab
will trigger the ion-fab-list even if theion-fab-button
isn't pressed. Which makes the click event trigger without actually pressing theion-fab-button
. I encountered this issue while binding a(click)
event to theion-fab-button
Expected behavior:
The
ion-fab-list
should be triggered only when theion-fab-button
is pressed, and not theion-fab
area itself.Or the small
ion-fab-button
area should take the whole ion-fab area (so it's triggered when pressing theion-fab
area).Related code:
ion-fab-button
is triggered (ripple effect, click event, pointer is changing, ...), theion-fab-list
as wellion-fab-list
is triggered but not theion-fab-button
(no ripple effect, no click event, pointer doesn't change, ...)https://stackblitz.com/edit/ionic-v5-bug-fab-size
The text was updated successfully, but these errors were encountered: