PDA

View Full Version : [FIXED]Broken CycleButton



Seboss
22 Feb 2011, 1:20 AM
When hovering on a cycle button placed in a toolbar, I get the following error:


Uncaught TypeError: Cannot read property 'dom' of null
Ext.define.isMenuTriggerOver ext-all-debug.js:51271
Ext.define.onMouseOver ext-all-debug.js:51016
anonymous:5
Ext.EventManager.createListenerWrap


On mouse out, I get this error:


Uncaught TypeError: Cannot read property 'dom' of null
Ext.define.isMenuTriggerOut ext-all-debug.js:51276
Ext.define.onMouseOut ext-all-debug.js:51044
Ext.define.monitorMouseOver ext-all-debug.js:51030
anonymous:5
Ext.EventManager.createListenerWrap ext-core-debug.js:13365


Finally, when clicking the cycle button, this is the error I get:


Uncaught TypeError: Cannot read property 'dom' of null
Ext.define.isClickOnArrow ext-all-debug.js:51242
Ext.define.onClick ext-all-debug.js:51249
anonymous:5
Ext.EventManager.createListenerWrap


It seems an "arrowEl" property is not properly defined.

To reproduce:


Ext.create("Ext.panel.Panel", {
//renderTo: "target",
title: "Test",
height: 500,
width: 500,
dockedItems: [{
dock: "top",
xtype: "toolbar",
items: [{
showText: true,
xtype: "cycle",
prependText: "View as ",
items: [{
text: "text",
checked: true
}, {
text: "HTML"
}]
}]
}]
});


EDIT: Split button suffers from the same problem, which is only logical since Cycle inherits from Split.

James Goddard
25 Feb 2011, 9:48 AM
I can confirm this is fixed in pr2 (at least for the split button).

Jamie Avins
25 Feb 2011, 10:09 AM
Not cycle, it will be in the next release.

Animal
25 Feb 2011, 11:00 AM
Cycle button will be fixed. And the Feed Viewer example updated to use a CycleButton to cycle through the view options.