GithubHelp home page GithubHelp logo

Comments (2)

malfborger avatar malfborger commented on May 27, 2024

yeah it kinda bloats the DOM doens't it? http://cl.ly/image/2E2d443n2B3s

from angular-modal-service.

dwmkerr avatar dwmkerr commented on May 27, 2024

Hi @lindamarieb I'm not sure I understand the question. The issue you refer to at the beginning is about having multiple top level elements in the modal template, i.e.

<div>One</div>
<div>Some Modal</div>
<div>Two</div>

would not be a suitable modal template as it has three top level elements, this is solved by doing:

<div>
  <div>One</div>
  <div>Some Modal</div>
  <div>Two</div>
</div>

The DOM bloat of backdrops can occur when you do not allow the animation to bootstrap animation to complete, if it does not complete it will not remove the backdrop.

Now if there is a modal present and the user reloads the page, why would there be a backdrop present at all? A reload is going to clear the DOM and rebuild it with the contents of the GET.

Are you looking for #33? Please take a look at that issue, if it looks like it is the same issue then please let me know, I'll close this and bump the priority of #33.

from angular-modal-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.