This seems to be related to this issue raised in the leaflet package and reference in this Community post. I'd suggest adding your example code as a new issue https://github.com/rstudio/leaflet/issues/new
This seems to be related to this issue raised in the leaflet package and reference in this Community post. I'd suggest adding your example code as a new issue https://github.com/rstudio/leaflet/issues/new