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.

check if dialog is open using isOpen

See original GitHub issue

there should be a function to check if particular dialog is open like isOpen using a dialog name or id specified while creating dialog

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
dlwhitemancommented, Aug 4, 2015

I was looking for the same thing, a way to find open dialogs so we don’t need to open another instance if one is already open. My use case is the UI is frequently pinging the REST API to see if it’s available. If there is a disconnection, an alert dialog is displayed saying the server is unavailable. We want it to keep pinging though, so the UI will wake back up when the server is back online. The problem I’m having is it’s creating an infinite number of dialogs with the same message, so I’d like to determine first whether there is already an open dialog. I would rather not have to hook in every time a user closes a dialog to find when I need to update some flag regarding whether the dialog is open.

0reactions
dougmoscropcommented, Aug 4, 2015

You can still track all this in your own service; have your ‘offline’ or ‘connection problem’ code/error handler emit an event, and have another piece that listens to those events and raises the dialog. In that place it’s as simple as if () … with a local var.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect if a jQuery UI dialog box is open - Stack Overflow
jQuery dialog has an isOpen property that can be used to check if a jQuery dialog is open or not. You can see...
Read more >
jQuery UI dialog isOpen() Method - GeeksforGeeks
isOpen () Method is used to check if the dialog box is open. This method does not accept any argument. Syntax:.
Read more >
Checking if a dialog has been opened - jQuery Forum
isOpen property jQuery dailog can be used to check if jQuery dailog is open or not. while using isOpen property use it like...
Read more >
HTMLDialogElement.open - Web APIs - MDN Web Docs
The open property of the HTMLDialogElement interface is a boolean value reflecting the open HTML attribute, indicating whether the <dialog> is available for...
Read more >
Check if a Dialog Box is Open - ADM Help Centers
It is helpful to track whether a dialog box is open before performing certain actions. For example: ... The DialogBox event can be...
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