Currently, I am utilizing leaflet within Vue.js to display an image. I have incorporated custom features such as draggable boxes on the map that can be transformed into rectangle leaflet objects by leaflet.
My objective is to be able to click on a rectangle and have the map pan to it without zooming (just centering the rectangle).
The issue at hand is that whenever I click on a rectangle and utilize the map.panTo() method, the map consistently pans to the center at coordinates [0,0].
This problem also arises when I drag and drop a div-box onto the map.
I suspect that there might be a faulty click event causing this bug, but I have yet to pinpoint it.