Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent pressing disabled children within tooltip #4291

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

lukewalczak
Copy link
Member

Motivation

Adding a fix preventing triggering children's onPress callback wrapped within a Tooltip component.

Related issue

Test plan

Tested on app, updated example.

@lukewalczak lukewalczak linked an issue Jan 22, 2024 that may be closed by this pull request
@callstack-bot
Copy link

Hey @lukewalczak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Copy link

The mobile version of example app from this branch is ready! You can see it here.

@lukewalczak lukewalczak merged commit 4f1be53 into main Jan 22, 2024
3 checks passed
@lukewalczak lukewalczak deleted the fix/tooltip-disabled-pressable-children branch January 22, 2024 16:51
@@ -122,6 +122,7 @@ const Tooltip = ({
};

const handleTouchStart = () => {
console.log('start');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukewalczak you forgot this console.log here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, thanks. Will fix later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disabled property on IconButton is not working
3 participants