-
24 Sep 2012 2:30 AM #1
Ext.form.field.Text mask() fails in IE
Ext.form.field.Text mask() fails in IE
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- IE8, IE9 - FAILS
- Chrome - works fine
- mask() method of TextField's element throws an error in Internet Explorer
- Create a textfield and call it's element's mask() method
- textfield should be masked with no errors
- textfield is masked with an error
HELPFUL INFORMATIONCode:Ext.create('Ext.form.field.Text', { emptyText: 'Click to mask...', renderTo: Ext.getBody(), listeners: { focus: function(self) { self.el.mask(); // will mask but throws "Unable to get value of the property 'dom': object is null or undefined" } } })
Debugging already done:- src/dom/Element.js line 379:
Code:maskEl = Ext.get(maskMsg.dom.previousSibling);
- not provided
- only default ext-all.css
- custom css (include details)
- Windows 7
-
24 Sep 2012 4:58 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
-
3 Oct 2012 2:49 AM #3
I'd like to add that I'm seeing the same behaviour described here on xtype: multiselect in IE9 (works on chrome/ffox).
As the OP mentioned, the issue is seen on the following line:
Inside this function:Code:maskEl = Ext.get(maskMsg.dom.previousSibling);
Don't suppose there is a fix in place yet?Code:Ext.DomHelper.append(dom, [{ cls : Ext.baseCSSPrefix + "mask" }, { cls : msgCls ? EXTELMASKMSG + " " + msgCls : EXTELMASKMSG, cn : { tag: 'div', html: msg || '' } }]); maskMsg = Ext.get(dom.lastChild); maskEl = Ext.get(maskMsg.dom.previousSibling);
-
30 Apr 2013 10:03 PM #4
bump.
I have the same issue on a combo. (Ext. 4.1.3)
It's really bizarre becausereturns a node, butCode:dom.lastChild
returns null.Code:Ext.get(dom.lastChild)
Issue exists in both IE9 & IE10
Was this fixed in 4.2?
FWIW i navigated it by masking the combo's container instead, which suggests it is more than an event hierarchy issue.
You found a bug! We've classified it as
EXTJSIV-7330
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote