ARIA Enabled ComboBox Issue - combobox

ARIA enabled combobox gives me
TypeError: a is undefined
in Firefox whenever I click on the trigger. And obviously with the error clicking the trigger doesn't show any data.
Disabling ARIA, it works fine.
In Chrome, I get this error
Uncaught TypeError: Cannot read property 'isVisible' of undefined ext-aria.js:1
Ext.define.getErrorTipOwner ext-aria.js:1
Ext.define.onFocus ext-aria.js:1
Base.implement.callParent ext-all-debug.js:4266
Ext.define.onFocus ext-all-debug.js:87675
Base.implement.callParent ext-all-debug.js:4266
Ext.define.onFocus ext-all-debug.js:92499
Ext.define.onTriggerClick ext-all-debug.js:97364
Ext.define.onTriggerWrapClick ext-all-debug.js:92583
(anonymous function) VM122:6
wrap
Again Firefox' error:
TypeError: a is undefined
...rm.FieldContainer",ariaRole:"group",ariaGetEl:function(){return this.getTargetEl...
On using ext-aria-debug.js the error is on the following
TypeError: tip is undefined
if (tip.isVisible()) {
This is where the error is:
getErrorTipOwner: function() {
var tip = this.tip;
if (tip.isVisible()) {
return tip.ownerField;
}
return null;
},

Related

ng-context menu is showing below error in angular 13

Explanation : when we right click on application for contextmenu below error is coming in browser console
Uncaught TypeError: this.overlay.position(...).connectedTo is not a function
at ContextMenuService.openContextMenu (vendor.js:44911:62)
at ContextMenuComponent.onMenuEvent (vendor.js:45076:34)
at SafeSubscriber._next (vendor.js:45059:18)
at SafeSubscriber.__tryOrUnsub (vendor.js:47244:16)
at SafeSubscriber.next (vendor.js:47183:22)
at Subscriber._next (vendor.js:47133:26)
at Subscriber.next (vendor.js:47110:18)
at Subject.next (vendor.js:46894:25)
source code:
this.contextMenuService.show.next({
anchorElement: fakeElement,
// Optional - if unspecified, all context menu components will open
contextMenu: this.efileCustomContextMenu.basicMenu,
event: $event,
item: item,
});

cannot read property of undefined | react error

I am trying to render info on UI, as IsMobileOnLease is a child node in JSON, i have used this to check the status of IsMobileOnLease but i am getting error as "cannot read property of undefined react".
this.mob.MobileLobList[0].MobileRiskList[0].IsMobileOnLease!=="undefined" && this.mob.MobileLobList[0].MobileRiskList[0].IsMobileOnLease=="Y"
?
<UISelect label="IsMobileOnLease" codeTableName="MobileData" model={this.mob} property="IsMobileOnLease" defaultValue='3' enabled={disabled} />
:
<UISelect label="IsMobileOnLease" codeTableName="MobileData" model={this.mob} property="IsMobileOnLease" defaultValue='5' enabled={disabled} />
}
Try this
this.mob.MobileLobList[0]?.MobileRiskList[0]?.IsMobileOnLease && this.mob.MobileLobList?.MobileRiskList?.IsMobileOnLease=="Y"

Iterating over array created from subscribe function of Observable

I have this code that gets some data from a MongoDB and saves it in an array in my component.
this.laugService.getAllLaug().subscribe(laug => {
this.laugs = laug; //save posts in array
});
this.laugs.array.forEach(element => {
this.modelLaugs.push(new Laug(element.navn, element.beskrivelse))
});
After that i want to save this data to a different array, where i create new instances of my model "Laug". For this i am using a foreach loop, however i am getting an error when running this code:
ERROR Error: Uncaught (in promise): TypeError: Cannot read property
'forEach' of undefined
TypeError: Cannot read property 'forEach' of undefined
I am certain that i receive the data from the DB, however i am unsure why my array is undefined at this point.
Your subscription is asynchronous. The laugs property may not be set when you are trying to iterate. Just put the forEach code inside the subscribe callback:
this.laugService.getAllLaug().subscribe(laug => {
this.laugs = laug; //save posts in array
if (this.laugs && this.laugs.array) {
this.laugs.array.forEach(element => {
this.modelLaugs.push(new Laug(element.navn, element.beskrivelse))
});
}
});

I have upgrade Extjs 4.2 to 5.1.1 now combobox getting error cannot read property apply..but which is working perfect in extjs 4.2

Uncaught TypeError: Cannot read property 'apply' of undefined ext-all-rtl-debug.js?_dc=1434006887415:122446Ext.define.getDisplayValue ext-all-rtl-debug.js?_dc=1434006887415:122446Ext.define.updateValue ext-all-rtl-debug.js?_dc=1434006887415:122405Ext.define.onValueCollectionEndUpdate ext-all-rtl-debug.js?_dc=1434006887415:122187fire ext-all-rtl-debug.js?_dc=1434006887415:11803doFireEvent ext-all-rtl-debug.js?_dc=1434006887415:12332fireEventArgs ext-all-rtl-debug.js?_dc=1434006887415:12300Ext.define.notify ext-all-rtl-debug.js?_dc=1434006887415:44074Ext.define.endUpdate ext-all-rtl-debug.js?_dc=1434006887415:42996Ext.define.doSetValue ext-all-rtl-debug.js?_dc=1434006887415:122369Ext.define.setValue ext-all-rtl-debug.js?_dc=1434006887415:122270Ext.define.setValueOnData ext-all-rtl-debug.js?_dc=1434006887415:121833Ext.define.bindStore ext-all-rtl-debug.js?_dc=1434006887415:121774Ext.define.setStore ext-all-rtl-debug.js?_dc=1434006887415:78436(anonymous function) ext-all-rtl-debug.js?_dc=1434006887415:6243Ext.define.bindStore ext-all-rtl-debug.js?_dc=1434006887415:121769Ext.define.setStore ext-all-rtl-debug.js?_dc=1434006887415:78436Ext.Configurator.configure ext-all-rtl-debug.js?_dc=1434006887415:6645Ext.Base.Base.addMembers.initConfig ext-all-rtl-debug.js?_dc=1434006887415:7424Ext.define.constructor ext-all-rtl-debug.js?_dc=1434006887415:39045constructor ext-all-rtl-debug.js?_dc=1434006887415:7660Ext.ClassManager.Ext.apply.widget ext-all-rtl-debug.js?_dc=1434006887415:8934Ext.define.create ext-all-rtl-debug.js?_dc=1434006887415:14599Ext.define.lookupComponent ext-all-rtl-debug.js?_dc=1434006887415:76363Ext.define.privates.prepareItems ext-all-rtl-debug.js?_dc=1434006887415:76752Ext.define.add ext-all-rtl-debug.js?_dc=1434006887415:75977Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:76301Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:88789Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:119267Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:76269Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:88783Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:119247Ext.define.constructor ext-all-rtl-debug.js?_dc=1434006887415:39089constructor ext-all-rtl-debug.js?_dc=1434006887415:7660Ext.ClassManager.Ext.apply.widget ext-all-rtl-debug.js?_dc=1434006887415:8934Ext.define.create ext-all-rtl-debug.js?_dc=1434006887415:14599Ext.define.lookupComponent ext-all-rtl-debug.js?_dc=1434006887415:76363Ext.define.privates.prepareItems ext-all-rtl-debug.js?_dc=1434006887415:76752Ext.define.add ext-all-rtl-debug.js?_dc=1434006887415:75977Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:76301Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:76269Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:118849Ext.define.constructor ext-all-rtl-debug.js?_dc=1434006887415:39089constructor ext-all-rtl-debug.js?_dc=1434006887415:7660Ext.ClassManager.Ext.apply.widget ext-all-rtl-debug.js?_dc=1434006887415:8934Ext.define.create ext-all-rtl-debug.js?_dc=1434006887415:14599Ext.define.lookupComponent ext-all-rtl-debug.js?_dc=1434006887415:76363Ext.define.privates.prepareItems ext-all-rtl-debug.js?_dc=1434006887415:76752Ext.define.add ext-all-rtl-debug.js?_dc=1434006887415:75977Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:76301Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:88789Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initItems ext-all-rtl-debug.js?_dc=1434006887415:119267Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:76269Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:88783Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.initComponent ext-all-rtl-debug.js?_dc=1434006887415:119247Ext.define.constructor ext-all-rtl-debug.js?_dc=1434006887415:39089constructor ext-all-rtl-debug.js?_dc=1434006887415:7660(anonymous function) VM2495:3Ext.ClassManager.Ext.apply.create ext-all-rtl-debug.js?_dc=1434006887415:8897Ext.ClassManager.Ext.apply.instantiateByAlias ext-all-rtl-debug.js?_dc=1434006887415:8721Ext.Function.ExtFunction.alias ext-all-rtl-debug.js?_dc=1434006887415:4450Ext.define.OnSubMenuItemClick MenuDataView.js?_dc=1434006888341:51fire ext-all-rtl-debug.js?_dc=1434006887415:11803Ext.define.dispatch ext-all-rtl-debug.js?_dc=1434006887415:33357Ext.Base.Base.addMembers.callParent ext-all-rtl-debug.js?_dc=1434006887415:7381Ext.define.dispatch ext-all-rtl-debug.js?_dc=1434006887415:33539prototype.doFireEvent ext-all-rtl-debug.js?_dc=1434006887415:33465fireEventArgs ext-all-rtl-debug.js?_dc=1434006887415:12300fireEvent ext-all-rtl-debug.js?_dc=1434006887415:12274Ext.define.processUIEvent ext-all-rtl-debug.js?_dc=1434006887415:95171Ext.define.handleEvent ext-all-rtl-debug.js?_dc=1434006887415:95123fire ext-all-rtl-debug.js?_dc=1434006887415:11803Ext.define.fire ext-all-rtl-debug.js?_dc=1434006887415:18548Ext.define.publish ext-all-rtl-debug.js?_dc=1434006887415:18524Ext.define.doDelegatedEvent ext-all-rtl-debug.js?_dc=1434006887415:18574Ext.define.onDelegatedEvent ext-all-rtl-debug.js?_dc=1434006887415:18561Ext.Function.ExtFunction.bind.method
Ext.override(Ext.form.ComboBox,
{
getDisplayValue: function () {
//return this.lastSelectionText;
return this.selection!=null?this.selection.get('DisplayValue'):this.lastSelection;
}
});
I got the answer..

display collection items - backbone

I have a problem trying to display collection items, in particular I get an error on collection.each() function:
getTodo: function(){
this.todos = new TodosCollection;
this.todos.query = new Parse.Query("test");
this.todos.fetch({
success:function(obj){
console.log(obj.length);
obj.each(this.addOne);
}
});
},
addOne: function(todo){
console.log(todo);
}
with this code I get this error:
Uncaught TypeError: undefined is not a function
console.log(obj.lenght) is != 0, so where is the error?
The this from which you call the addOne method is the callback, not your object - and the callback's property addOne is undefined, so you're trying to call undefined as a function. You can bind the callback to the object scope this way:
success: _.bind(function(obj){
obj.each(this.addOne);
}, this)

Resources