PDA

View Full Version : Ext.form.Radio and YAHOO.util.UserAction problem



mattis
15 Sep 2009, 3:40 AM
Hi,

I have a problem with YUI's YAHOO.util.UserAction and Ext's Ext.form.Radio. Basically firering a click event on the radio's dom element works in Firefox and not in IE.

Example:



testShouldFireCheckEvent: function(){
// given
var radio = new Ext.form.Radio({
renderTo: Ext.getBody()
});

// when
radio.on('check', function() {
alert("Here");
}, this);

YAHOO.util.UserAction.click(radio.el.dom);

//then
//"Here" is alerted in firefox
//"Here" is not alerted in IE
}


I was not sure if this is a problem with Ext or YUI, but I'll try here first. Thanks for reading.