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.

Angular using vanilla JS implementation, styles hidden

See original GitHub issue

Using the vanilla JS implementation and when I initialise the modal I can see that it gets added to the DOM however it looks like the css is missing some styles to actually make it display, for example the first div of the modal looks like this with properties hidden, opacity 0 etc and child elements are also similar.

.fdJEgN {
    transition: opacity 0.1s ease-in-out 0s;
    text-align: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    margin-left: -50vw;
    top: 0px;
    left: 50%;
    z-index: 2;
    will-change: opacity;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
useless-token-devcommented, Nov 7, 2021

had the same issue fixed it by using window.updateWeb3Modal and changing Modal state manually

await window.updateWeb3Modal({ show: true });
await web3Modal.connect();
await window.updateWeb3Modal({ show: false });
0reactions
hackygurucommented, Sep 19, 2022

Thanks for helping out @useless-token-dev 😃 Closing this issue now because W3MV2 is launched and it will be framework agnostic. More details would be included in the docs later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide all elements with class using plain Javascript
I normally use document.getElementById('id').style.display = 'none' to hide a single div via Javascript. Is there a similarly simple way to hide all ...
Read more >
The Ultimate Guide for Implementing a Simple Modal ...
In this article I'll work you through how to create a simple modal component with vanilla JavaScript, as well as with each one...
Read more >
How to show and hide elements with vanilla JavaScript
Showing and hiding elements with vanilla JS is pretty straightforward. ... Show an element var show = function (elem) { elem.style.display ...
Read more >
Styling Web Components | Pluralsight
These hidden DOM trees are isolated from the parent DOM tree, confining the scope of the CSS to the web component, allowing repeated...
Read more >
HTMLElement.hidden - Web APIs - MDN Web Docs
The HTMLElement property hidden reflects the value of the element's hidden attribute.
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