Commit de323944 authored by Michael Underwood's avatar Michael Underwood
Browse files

Add popups as "non-content" inside markers

parent ae2c4ba6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- The marker icon passed to the Leaflet constructor is now only replaced with an empty div when there is
  additional content within the `<LMarker>` component, _and_ at least some of that content is something
  other than a tooltip, resolving
  other than a tooltip or popup, resolving
  [#269 Marker with tooltip no longer visible with v0.8.2](https://github.com/vue-leaflet/vue-leaflet/issues/269).

### Changed
+4 −1
Original line number Diff line number Diff line
@@ -73,7 +73,10 @@ export const shouldBlankIcon = (options, context) => {
  // Vue mounts the inner content and vue-leaflet updates the marker with it.
  // See https://github.com/vue-leaflet/vue-leaflet/issues/170
  const slotContent = context.slots.default && context.slots.default();
  if (slotContent && slotContent.some((el) => el.type.name !== "LTooltip")) {
  if (
    slotContent &&
    slotContent.some((el) => !["LTooltip", "LPopup"].includes(el.type.name))
  ) {
    return true;
  }