Angular using vanilla JS implementation, styles hidden
See original GitHub issueUsing 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:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
had the same issue fixed it by using
window.updateWeb3Modal
and changingModal
state manuallyThanks 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.