LiveView's morphdom was replacing the canvas element inside the chart container whenever filters were toggled, destroying the Chart.js rendering context. Add phx-update="ignore" to the chart container so LiveView preserves JS-managed children after initial render. |
||
|---|---|---|
| .. | ||
| ammoprices | ||
| ammoprices_web | ||
| ammoprices.ex | ||
| ammoprices_web.ex | ||