Ticket #5397 (closed defect: duplicate)

Opened 7 months ago

Last modified 7 months ago

Textarea 1.0.1: Event handling does not work in Firefox

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Dijit Version: 1.0
Severity: normal Keywords: Textarea events
Cc:

Description

Hi, first: I have created this ticket yesterday evening already, but I can't find it now, so if it exists already, just close this one.

The Issue: Textarea event handling does not work in Dojo 0.9, 1.0 and 1.0.1. Below is a sample, on the page, onclick work for the textarea only if one clicks on the edge of the Component. It should also fire when the user clicks on the text. The sample also contains a textbox with which the same thing works just fine.

This only applies to Firefox, Version is 2.0.0.11 .

Here is the sample:

<head> <title>Dojo Events are Great</title> <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js"></script> <script type="text/javascript">

function foo(){

alert('foo')

} function fee(){

alert('foe')

} </script> <script type="text/javascript">

dojo.require("dijit.form.Textarea");

dojo.require("dijit.form.TextBox?");

dojo.addOnLoad(function() {

dojo.parser.parse(dojo.byId('container'));

var areaNode = dojo.byId("areaid"); dojo.connect(areaNode, 'onclick', foo); var boxNode = dojo.byId("boxid"); dojo.connect(boxNode, 'onclick', fee);

});

</script> <body> <input dojoType='dijit.form.Textarea' name='area' id='areaid' value='a comment' ></input> <input dojoType='dijit.form.TextBox?' name='box' id='boxid' value='a box' ></input>

</body> </html>

Change History

Changed 7 months ago by guest

sorry, just saw the other one, please close.

Changed 7 months ago by bill

  • status changed from new to closed
  • resolution set to duplicate

Dup of #5391.

Note: See TracTickets for help on using tickets.