react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

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

Open legubiao opened this issue 1 year ago • 0 comments

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

legubiao avatar Jul 29 '24 10:07 legubiao