Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Allow focus on contentEditable fields #5939

Closed
wants to merge 2 commits into from

Conversation

barryvdh
Copy link
Contributor

Fixes #5937

Not sure if this is cross-browser, tested etc, but does seem to fix the issue for Android/iOS

@barryvdh
Copy link
Contributor Author

Any updates on this?

@EladBezalel
Copy link
Member

@barryvdh is this still happening on head?

@barryvdh
Copy link
Contributor Author

Yes, see http://codepen.io/barryvdh/full/VaXyVW/
On desktop: you can edit/type both paragraphs.
On mobile (Android, Chrome browser): You can change the text by selecting/just typing, but you can't just click to see a cursor and start editing. Textarea works as expected.

@ThomasBurleson ThomasBurleson added the pr: merge ready This PR is ready for a caretaker to review label Apr 19, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.1 milestone Apr 19, 2016
@ThomasBurleson ThomasBurleson self-assigned this Apr 19, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.1, Backlog Apr 21, 2016
@ThomasBurleson ThomasBurleson modified the milestones: - Backlog, Deprecated May 26, 2016
@barryvdh
Copy link
Contributor Author

barryvdh commented Jun 2, 2016

So this is not a good way to fix it or ..?

@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

@barryvdh
Copy link
Contributor Author

barryvdh commented Jun 2, 2016

Yes but you did reopen the issue: #5937
Or does that mean it will only be fixed in v2?

@devversion
Copy link
Member

@barryvdh Yeah, I reopened #5937. Please add a test for your change and I'll reopen. (Please ping me, once you've finished)

@devversion devversion added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: tests and removed pr: merge ready This PR is ready for a caretaker to review labels Jun 5, 2016
@devversion devversion removed this from the Deprecated milestone Jun 5, 2016
@barryvdh
Copy link
Contributor Author

barryvdh commented Jun 5, 2016

Sorry, I looked but I have no idea how to write a test for this. I was looking in https://github.com/angular/material/blob/master/src/core/services/gesture/gesture.spec.js to see what to add/modify, but can't really find a test for the current behavior.
Could you point me in the right direction where the tests are for the current behaviour? (eg. just skipping hijack for input/textarea etc)

@devversion devversion reopened this Jun 5, 2016
@devversion
Copy link
Member

@barryvdh I'm sorry, I led you into the wrong direction. I just realized that this is test will require an iOS or Android environment, so tests will always pass.

@devversion devversion added needs: review This PR is waiting on review from the team and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: tests labels Jun 5, 2016
@devversion
Copy link
Member

@ThomasBurleson This is a reasonable PR and looks good to me.

@barryvdh
Copy link
Contributor Author

barryvdh commented Jun 5, 2016

@devversion Ok thanks! I changed the check outside those parentheses, should be a bit more readable. now.

@kpgarrod
Copy link

What is happening about this? It seems to be a simple fix but the problem still exists in 1.1.0 and it is causing major issues for production users of my shiny new, just launched application. Is there some way to patch the 1.1.0 code or is there a branch I can use in which this problem is fixed.

@devversion
Copy link
Member

@kpgarrod This PR has been merged into master and should be available in v1.1.0.

If you still experience issues it would be good to create a new issue for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

contentEditable not selectable with Angular Material on Android
5 participants