View Full Version : [OPEN-1381] Click TextField while a menu is active, emptyText remains.

1 Nov 2010, 1:18 AM
Ext version tested:

Ext 3.1.0, 3.3.0

Adapter used:


Browser versions tested against:


Operating System:

WinXP Pro


When focus the TextField, the emptyText remains.

Test Case:
It can reproduce in API doc.
URL : http://dev.sencha.com/deploy/dev/docs/

Steps to reproduce the problem:

Open API doc with IE6 or IE8.
Right click the "API home" tab, popup a menu.
Click the search field on left panel.

The result that was expected:

Focus at search field, and emptyText is disappear.

The result that occurs instead:

Input cursor is there, but emptyText is remains.

Debugging already done:

I have tracked it for several days, and found that:
If change focus target in mousedown event,
( use *.focus() or focusedEl.hide(), because hidden element can't be focused )
the final activeElement is the element you change to.
but in UI, the input is also be activated, and there's no "focus" event for it!
Seens the UI component is out of sync with DOM module.

When a menu is active, there's a related 'a' element been focused.
While click at other place(TextField), MenuMgr will hide all menu, then the focus target will change to document.body.

Possible fix:

not provided

1 Nov 2010, 1:23 AM
This issue has been found since Ext1.1.1
see: http://www.sencha.com/forum/showthread.php?23976-Ext.form.TextField-not-focused-on-click-while-Ext.menu.Menu-is-expanded

4 Nov 2010, 3:11 PM
Issue only occurs with IE6/7/8. This was added to our bug tracking system.