Skip to content

Fab.Group forgot to remove the click event of the fab label #4467

@legubiao

Description

@legubiao

Current behaviour

When "open" is set to false for a fab.group with labels, the label's click event is not removed correctly. Clicking on the original position of the tab label still triggers the click event.

Expected behaviour

When the "open" is set to false, there should have no click event

How to reproduce?

Install the latest version of [email protected]

Preview

Below is the screenshot of my app in web and F12

截图 2024-07-29 17-54-48
截图 2024-07-29 17-55-12

What have you tried so far?

In each action, I added "labelStyle: {pointerEvents: 'none'}," and this can solve the unexpected click-event.

Your Environment

software version
ios x
android x
react-native 0.74.3
react-native-paper 5.12.5
node 20.15.0
npm or yarn 10.8.1
expo sdk 51.0.21

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions