Skip to content

[Tooltip] Long press select text on iOS#23466

Merged
eps1lon merged 14 commits into
mui:nextfrom
hmaddisb:tooltip-longpress-ios
Nov 12, 2020
Merged

[Tooltip] Long press select text on iOS#23466
eps1lon merged 14 commits into
mui:nextfrom
hmaddisb:tooltip-longpress-ios

Conversation

@hmaddisb

Copy link
Copy Markdown
Contributor

I added a useRef for keeping track of old WebkitUserSelect. If placement of introducing the ref is incorrect, feedback is much appreciated!

Closes #23232

@mui-pr-bot

mui-pr-bot commented Nov 10, 2020

Copy link
Copy Markdown

Details of bundle changes

Generated by 🚫 dangerJS against d5e8760

@oliviertassinari oliviertassinari added type: bug It doesn't behave as expected. scope: tooltip Changes related to the tooltip. labels Nov 10, 2020
@hmaddisb

Copy link
Copy Markdown
Contributor Author

@oliviertassinari hi, haven't seen this type of failure before. is there something I have done incorrectly?

@oliviertassinari

Copy link
Copy Markdown
Member

We work on this problem at #23464.

@hmaddisb

Copy link
Copy Markdown
Contributor Author

ok, thank you for the information!

@eps1lon eps1lon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. The cleanup is a bit too eager though.

Comment thread packages/material-ui/src/Tooltip/Tooltip.js Outdated
Comment thread packages/material-ui/src/Tooltip/Tooltip.js Outdated
Comment thread packages/material-ui/src/Tooltip/Tooltip.js
Comment thread packages/material-ui/src/Tooltip/Tooltip.js Outdated
@oliviertassinari
oliviertassinari dismissed eps1lon’s stale review November 11, 2020 17:11

bug fixed and test case added

@oliviertassinari oliviertassinari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

great cleanup

@eps1lon

eps1lon commented Nov 12, 2020

Copy link
Copy Markdown
Member

Did somebody confirm this works on iOS? It's not working on iPadOS. The PR description might still be correct since iOS and iPadOS are different operating systems. Just want to make sure we don't think this fixed it on all touch devices.

@oliviertassinari

Copy link
Copy Markdown
Member

I can confirm the PR fixes the behavior on these two simulators:

Capture d’écran 2020-11-12 à 14 25 46

Capture d’écran 2020-11-12 à 14 25 40

@eps1lon

eps1lon commented Nov 12, 2020

Copy link
Copy Markdown
Member

I can confirm the PR fixes the behavior on these two simulators:

Capture d’écran 2020-11-12 à 14 25 46 Capture d’écran 2020-11-12 à 14 25 40

Let's hope they're more accurate than firefox' touch simulators.

@eps1lon
eps1lon merged commit a282900 into mui:next Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tooltip Changes related to the tooltip. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tooltip] Long press select text on iOS

4 participants