AEM 6.3, CoralUI slider in dialog: Cannot read property 'contains' of null | Community
Skip to main content
Level 4
Oct 25, 2017 9:27 AM UTC
Solved

AEM 6.3, CoralUI slider in dialog: Cannot read property 'contains' of null

If I try to add one of the sliders (to my component dialog) documented on this page: https://docs.adobe.com/docs/en/aem/6-3/develop/ref/coral-ui/coralui3/Coral.Slider.html​, I get the following error:

I think It has something to do with me trying to make it work in the template of a CoralUI.Multifield. If I try the following it works:

$wrapper.append("<coral-slider step=\"2\" min=\"10\" max=\"20\" value=\"14\"></coral-slider>");

This does not work:

var rangedSlider = new Coral.RangedSlider();

rangedSlider.set({

    min: 0,

    max: 50,

    step: 2,

    startValue: 10,

    endValue: 20,

    tooltips: true,

    id: 'rangedSlider'

});

multifield.template.content.appendChild(rangedSlider);

I had no issues with other CoralUI components added using the template (for example a 'CoralUI.Select'), all of them are working fine in my dialog. All help is appreciated!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 26, 2017 3:10 PM UTC

3 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 26, 2017 3:10 PM UTC
Level 4
Oct 26, 2017 7:13 AM UTC

Thank you Keep me up to date.

Translate
smacdonald2008
Level 10
Oct 25, 2017 8:05 PM UTC

I have asked internally about this. This is an interesting question.

Translate