Card style does not work on legend widget

221
2
Jump to solution
11-19-2018 11:56 PM
MarkusÅfelt
New Contributor III

Hi,

When I use Legend widget (JS API 4.9) with card styling and chancing the amount of classbreaks then legend widget breaks. I see on the console log that error occurs:

Uncaught Error: div had a div child removed, but there is now more than one. You must add unique key properties to make them distinguishable.
at m (VM234 dojo.js:2302)
at v (VM234 dojo.js:2309)
at v (VM234 dojo.js:2308)
at v (VM234 dojo.js:2308)
at Object.update (VM234 dojo.js:2312)
...
(anonymous) @ index.html?sample=vi…-sm-classbreaks:126
a @ dojo.js:136

I have attached example file for demonstrating the problem. Change the "breaks" amount to see the crash.

This problem does not occur with classic style, only with card style.

Br,

Markus 

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi Markus Åfelt, it looks like we fixed this at 4.10. Could you update your app and verify that it works for you?

View solution in original post

2 Replies
Noah-Sager
Esri Regular Contributor

Hi Markus Åfelt, it looks like we fixed this at 4.10. Could you update your app and verify that it works for you?

View solution in original post

MarkusÅfelt
New Contributor III

Hi Noah,

I updated to 4.10 and card style legend is working now.