bug: small ion-fab-button with a ion-fab-list has a wrong click event area
See original GitHub issueBug 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, …), theion-fab-list
as well - Press the red area of the second fab (small size) : the
ion-fab-list
is triggered but not theion-fab-button
(no ripple effect, no click event, pointer doesn’t change, …)
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh I didn’t even notice that. The ripple effect only fires when you click the
ion-fab-button
. It looks likeion-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.
Can everyone try the following dev build and let me know if it resolves the issue?
Example:
npm install @ionic/angular@6.1.9-dev.11654537362.165e92c3