https://codepen.io/quarkus/pen/WbQYpMY
Reproduction:
- click d3
- click d4
- click d3
- click d4
(no selection)
- click d1
d1 is selected, custom element map renders d4 as selection
DOM looks like this (not good) / state differs from attribute value:
ps.:
even easier: click d4 2 times, click d1. same same