Authoring dialog errors and doesn't allow the dialog field event handlers to work (AEM 6.2) | Community
Skip to main content
New Participant
Oct 24, 2016 2:33 PM UTC

Authoring dialog errors and doesn't allow the dialog field event handlers to work (AEM 6.2)

Hi,

I am writing a custom component with event handlers (Touch UI - Using AEM 6.2. ) for dialog fields using the example provided. Whenever I launch the dialog on any component, I am getting the error - "coralui2.js:12588 Uncaught TypeError: Cannot read property 'selectedIndex' of undefined" and I believe this stops the events are getting registered or triggered. 

Error is appearing when the below highlighted line of code runs - 
getValue: function () {
if (this.options.multiple) { // multiple returns array
return this._tagListWidget.getValues();
} else if (this.options.type === 'static') { // static
return this._nativeSelect[0][this._nativeSelect[0].selectedIndex].value;
} else if (this.options.type === 'dynamic') {
return this._valueInput.val();
} return null;},

We don't see this error when loading the page and this highlighted line of code runs fine. We have this error on all component dialog boxes and on all local instance and on our test instance. 

Please can you advice if you have encountered this issue before?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

VeenaVikraman
New Participant
Sep 29, 2017 1:59 PM UTC

- Can you please tell which example you are referring. The error more likely seems to me like an xtype issue. If possible , share a sample project where this issue can be replicated

Thanks

Veena

Translate
Level 3
Sep 29, 2017 10:24 AM UTC

did you ever find an answer for this?

Translate