fix(webapp): the map stays visible while placing a marker (#1251) #1252
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/map-placing-blank"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1251.
Pressing Add a marker blanked the map.
MapCanvasrendered the Leaflet container'sclassNamewith the--placingmodifier. When placing began, React rewrote that attribute and wiped the classes Leaflet adds to the same element. Withoutleaflet-container, the globalimg { max-width: 100% }shrank every tile to nothing.classNameis now constant.qmap__canvas--placingis toggled withclassListin an effect.MapCanvas.test.jsx, using the real Leaflet. It fails on the old code and passes now.MapCanvas.test.jsxandMap.test.jsxboth pass (18 tests), and eslint is clean.changelog.d/1251-map-placing-blank.fixed.md.🤖 Generated with Claude Code
MapCanvas rendered the Leaflet container's className with the placing modifier, so React rewrote the attribute when placing began and wiped Leaflet's own classes. Without leaflet-container, the global img { max-width: 100% } squashed every tile to nothing. The rendered className is now constant and the modifier is toggled with classList. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>