-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
contenteditable div not work with scrollable content #421
Comments
The issue is with the following code in ionic.js: container.addEventListener("touchstart", function(e) {
// Don't react if initial down happens on a form element
if (e.target.tagName.match(/input|textarea|select/i)) {
return;
}
self.doTouchStart(e.touches, e.timeStamp);
e.preventDefault();
}, false); It does not recognize a "tap" on the div. Instead, e.preventDefault() get called in "touchstart" event. Maybe remember the tap action and re-trigger it again after touchend event will help? Another similar issue is, for multi-line textarea inside the content area, only first tap works. |
Thanks for the data, that really helps! We'll take a look at it. |
+1 |
this is affecting the scroll on form views |
@ajoslin Can you re-open this please? Forum : http://forum.ionicframework.com/t/contenteditable-on-side-menu-does-not-work/3195 Working Sample : Good / Bad Sample : http://codepen.io/calendee/pen/nuHph : |
@calendee Could you test this again with beta2 and the recent scroll changes? I don't understand the codepen you posted. |
Still not working Andy on nightly or beta2. Open the CodePen. Welcome page shows "EDIT THIS SECTION!!!!" Try to edit it. No dice. It should be editable. If you open the menu, you will see "Edit Me!" as a list item. You can edit it like a fiend. |
@ajoslin I'll look into this one since it's related to all the tap/scroll stuff. |
Hi Its seems that for ionic-v1.0.0-beta.9 the issue is still persisting. Also the issue described here: |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
I tried to use ionic to implement an editable html notepad like iPhone's build-in "Notes" app. The following code works fine on Windows Chrome, but having issue on iPhone(iOS 6 and 7) Safari/Chrome:
On iPhone the contenteditable div is very hard to be clicked to edit (it seems only a small area of the first note is responding). Setting scroll="false" will resolve this issue. [Edit]: Actually setting overflow-scroll="true" resolves the issue.
Here's an online example of the issue: https://notegg.com/uitest
The text was updated successfully, but these errors were encountered: