question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Popups showing immediately -- want them all closed by default

See original GitHub issue

Right now when looping through markers and setting popups, they all show up open by default. How can we make them so they are closed until the marker is clicked?

My current code:

    <MglMarker
      v-for="item in items"
      v-bind:key="item.id">
      <MglPopup>
        <div>
          Stuff
        </div>
      </MglPopup>
    </MglMarker>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
soalcommented, Mar 4, 2019

Hi @kevinelliott! What you think would be the best approach to this issue? I’m thinking of adding showed prop, false by default, or, maybe, try to utilize v-show directive, although it’s looks non-trivial to implement.

1reaction
aidangarzacommented, Mar 4, 2019

I agree with @kevinelliott, and used the same method he described above to close all of the popups immediately. Some of my users have hundreds of markers load on a map, and it’s pretty inefficient to close them all every time the map loads.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Block or allow pop-ups in Chrome - Computer - Google Support
By default, Google Chrome blocks pop-ups from automatically showing up on your screen. When a pop-up is blocked, the address bar will be...
Read more >
How to Stop Pop-Ups in Windows 10 and 11 - MakeUseOf
Seeing pop-ups and not sure where they came from? Here's a quick guide to diagnosing and dealing with Windows pop-ups.
Read more >
Popups and window methods - The Modern JavaScript Tutorial
To close the popup: use close() call. Also the user may close them (just like any other windows). The window.
Read more >
How do I enable or disable pop-ups in web browsers? - IU KB
Click to select either Turn Off Pop-up Blocker or Turn On Pop-up Blocker. By default, Internet Explorer displays pop-ups that appear as a...
Read more >
Block pop-up ads and windows in Safari - Apple Support
Some pop-ups and ads have fake buttons that resemble a close ... Always install the latest software updates for all of your Apple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found