AnsweredAssumed Answered

Why are my classes being removed when using popupTemplate?

Question asked by Jefairfi on Jan 3, 2020
Latest reply on Jan 24, 2020 by PHoltzhausen

In the latest version of the js api (4.14), when I create a simple popup template like this:

...

popupTemplate:{
   title: 'test',
   content: '<div class="customClass">Green</div>'
}

...

Why is my "customClass" being removed in the resulting popup html?

 

Here is a simple example in JS Bin:     JS Bin - Collaborative JavaScript Debugging 

In this example, I would have expected the "Green" text in the body of the popup to appear green.

 

This issue doesn't seem to happen when reverting back to the 4.13 version of the api.

Outcomes