We have set showAttribution to true while creating map object and the attribution changes properly until we handle map.onLayerAdd and map.onLayerRemove Events.
As soon as we handel map.onLayerAdd and map.onLayerRemove Events Map Attribution is not working properly.
Steps to reproduce:
- In attached sample click on "change basemap" button and observe map attribution is changing.
- Now click on "Handel Layer Add/Remove Events" button
- Now click on "change basemap" button and observe the map attribution is not changing.