react-leaflet-div-icon icon indicating copy to clipboard operation
react-leaflet-div-icon copied to clipboard

Updates to className not propagated to DOM

Open cherouvim opened this issue 6 years ago • 0 comments

My JSX looks like this:

<DivIcon
	position={[lat, lon]}
	className={expanded?"xxx":"yyy"}
>
	<p>whatever</p>
</DivIcon>

Only the initial className is rendered (e.g "xxx" if expanded===true) but then updating this property to false does not refresh the DOM.

cherouvim avatar Aug 21 '18 14:08 cherouvim