question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: small ion-fab-button with a ion-fab-list has a wrong click event area

See original GitHub issue

Bug Report

Ionic version:

[x] 5.x

Current behavior:

If a ion-fab has a ion-fab-button size="small" with a ion-fab-list, the area of the ion-fab will trigger the ion-fab-list even if the ion-fab-button isn’t pressed. Which makes the click event trigger without actually pressing the ion-fab-button. I encountered this issue while binding a (click) event to the ion-fab-button

Expected behavior:

The ion-fab-list should be triggered only when the ion-fab-button is pressed, and not the ion-fab area itself. Or the small ion-fab-button area should take the whole ion-fab area (so it’s triggered when pressing the ion-fab area).

Related code:

  • Press the red area of the first fab (normal size) : the ion-fab-button is triggered (ripple effect, click event, pointer is changing, …), the ion-fab-list as well
  • Press the red area of the second fab (small size) : the ion-fab-list is triggered but not the ion-fab-button (no ripple effect, no click event, pointer doesn’t change, …)

https://stackblitz.com/edit/ionic-v5-bug-fab-size

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
liamdebeasicommented, Jul 17, 2020

Oh I didn’t even notice that. The ripple effect only fires when you click the ion-fab-button. It looks like ion-fab listens for a click event on the host, which is why clicking the button margin area opens the list, but does not trigger the ripple effect.

The ripple effect not firing is probably a bug.

1reaction
liamdebeasicommented, Jun 6, 2022

Can everyone try the following dev build and let me know if it resolves the issue?

6.1.9-dev.11654537362.165e92c3

Example: npm install @ionic/angular@6.1.9-dev.11654537362.165e92c3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ion-fab-list not working correctly! - ionic-v3
a FAB buttons displays a small lists of related actions when clicked. you are using the fab-cointer to positionate your fab-buttons --> so...
Read more >
ion-fab-list on open, on close event - Stack Overflow
Bind the click event here --> <button (tap)="fabToggled()" ion-fab mini> ... It's closed by default private isOpened: boolean = false; ...
Read more >
Build a PWA Map application using Ionic and Leaflet
Build a PWA Map using Ionic and Leaflet. Featuring Google address search integration, GPS and layer switcher. (Step by step guide)
Read more >
Ionic 3: Fab Button Is Not Visible Inside Fab List - ADocLib
Conditional ion-fab button is not visible if the ion-fab-list is open when the condition becomes true #1064 Closing and re-opening the list will...
Read more >
Ionic V5 Disabled Fab - StackBlitz
<ion-fab-button [disabled]="disabled">. <ion-icon name="add"></ion-icon>. </ion-fab-button>. <ion-fab-list> ... <ion-button (click)="disabled=false;.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found