Skip to content

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

@Yohandah

Description

@Yohandah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanteda good issue for the communitypackage: core@ionic/core packagetype: buga confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions