Frage

I have been pulling out my hairs trying to figure out why the textarea tags on a particular page can't be typed into. From what I can see, they are not disabled or readonly, but I can't type into them on any browser.

Please take your FireBugs and Chrome Developer Tools and help me out here.

Other info: this is a single-page JS app built with Spine, using npm-browserified packages. But I don't see why that would cause any issues with textarea.

War es hilfreich?

Lösung

Way down, towards the bottom of the JavaScript file is this line:

$(document).keypress(this.keyPressed);

And then lower down is:

Tutorial.prototype.keyPressed = function(ev) {
    ev.preventDefault();

This is, obviously, disabling the keypress event for everything on the page.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top