You found a bug! We've classified it as
EXTJS-16599 .
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.Cannot read property 'pointerType' of undefined
Cannot read property 'pointerType' of undefined
Using Ext JS 5.1.1.215, I can end-up in the following code with Ext.EventObject == undefined:
I'm guessing that checking for null for Ext.EventObject would be a good workaround.
Code:
Ext.define('Ext.view.BoundList', {
extend: 'Ext.view.View',
...
onHide: function() {
var inputEl = this.pickerField.inputEl.dom;
// If we're hiding a focused picker, focus must move to the input field unless the instigating
// browser event is a touch. In that case, the input only focuses when they touch it -
// we want to avoid an appearing keyboard.
if (Ext.Element.getActiveElement() !== inputEl && Ext.EventObject.pointerType !== 'touch') {
inputEl.focus();
}
// Call parent (hide the element) *after* focus has been moved out.
// Maintainer: Component#onHide takes parameters.
this.callParent(arguments);
}
[OPEN] Cannot read property 'pointerType' of undefined
Aucun commentaire:
Enregistrer un commentaire