#5397 closed defect (duplicate)
Textarea 1.0.1: Event handling does not work in Firefox
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit - Form | Version: | 1.0 |
Keywords: | Textarea events | Cc: | |
Blocked By: | Blocking: |
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 (3)
comment:1 Changed 15 years ago by
comment:3 Changed 11 years ago by
Component: | Dijit → Dijit - Form |
---|
sorry, just saw the other one, please close.