1

It properly works on all browsers, just on iPad safari. If I emulate as iPad user agent on the browser, it just works fine.

http://jsfiddle.net/NMcuy/38/embedded/result/

The problem is that If I type text (Add Text), the keyboard in iPad shows, I can press keys, but it doesn't show in the draggable div. Even the default text stays the same.

I don't know that the problem is :(

function newText()
{
var note = new Note();
note.id = ++highestId;

var text = document.createElement('textarea');
text.name = "text";
text.setAttribute("onkeyup", "textAreaAdjust(this)");
text.setAttribute("class", "text");
//text.innerHTML = initialText;
note.contentField.appendChild(text);

note.name = note.id + "_text";
note.left = Math.round(Math.random() * 400) + 'px';
note.top = Math.round(Math.random() * 500) + 'px';
note.zIndex = ++highestZ;
note.saveAsNew();
}
Antony
  • 14,900
  • 10
  • 46
  • 74
Rey Libutan
  • 5,226
  • 9
  • 42
  • 73

1 Answers1

1

According to my research this is a bug/(specific feature) in iOS regarding focus (or delagating focus) events. This was dropped afterwards.

Mobile Safari Autofocus text field

Community
  • 1
  • 1
Rey Libutan
  • 5,226
  • 9
  • 42
  • 73
  • Linking to proof of this being a bug would be good, or at least quoting some source. An answer which basically says "this is a bug" and nothing more is very low quality. – James Donnelly Oct 21 '13 at 07:59
  • I added a link to a similar question here in SO with more detail. I would add the link of the bug ticket If I will stumble upon it later. – Rey Libutan Oct 21 '13 at 08:09