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

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

  • October 25, 2017
  • 3 replies
  • 2041 views

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.
Best answer by smacdonald2008

The only blog we have for Slider is here:

http://experience-aem.blogspot.com/2016/11/aem-62-touch-ui-assets-console-cards-view-thumbnail-zoom-slider.html

Hope this helps...

3 replies

smacdonald2008
Level 10
October 25, 2017

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

Level 4
October 26, 2017

Thank you Keep me up to date.

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 26, 2017