Unverified Commit 051ad30f authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

fix: correctly filter event names

parent ce7e2a98
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -53,9 +53,11 @@ export const propsBinder = (methods, leafletElement, props, setOptions) => {
export const remapEvents = (onEvent) => {
  const result = {};
  for (const eventName in onEvent) {
    if (eventName !== "modelValue" && !eventName.startsWith("onUpdate")) {
      const newName = eventName.replace("on", "").toLowerCase();
      result[newName] = onEvent[eventName];
    }
  }
  return result;
};