Giter Site home page Giter Site logo

Comments (8)

mpalmerlee avatar mpalmerlee commented on May 17, 2024

Note, this only seems to be when you don't specifically use the autodestroy: false option. Maybe this is the intended behavior?

from bootstrap3-dialog.

nakupanda avatar nakupanda commented on May 17, 2024

Hmm... this looks like a similar problem to this one: #10

Setting autodestroy to false to enable opening a same dialog multiple times is an intended behavior.

from bootstrap3-dialog.

nakupanda avatar nakupanda commented on May 17, 2024

See the description of option 'autodestroy' in the crude documentation here: http://nakupanda.github.io/bootstrap3-dialog/#available-options

from bootstrap3-dialog.

mpalmerlee avatar mpalmerlee commented on May 17, 2024

That all makes sense, I think the problem is if you use the default (autodestroy:true), the library user expects to still be able to call the dialog object multiple times and have it behave the same, I would assume if you keep autodestroy:true it might just be a bit less efficient because it'll have to re-create the dom elements each time.

from bootstrap3-dialog.

nakupanda avatar nakupanda commented on May 17, 2024

Thanks for your notes.

The reason of why it's true by default is that there will be many modal stuff last in dom tree and that will increase memory usage.

We will change its default value to false if most people would like it to be that way.

from bootstrap3-dialog.

mpalmerlee avatar mpalmerlee commented on May 17, 2024

I think you could leave it it default to true if we could get the close button bug figured out. If you click outside of the dialog on 2nd open it still closes, just clicking the 'X' doesn't seem to do anything after the 2nd open.

from bootstrap3-dialog.

nakupanda avatar nakupanda commented on May 17, 2024

Still thinking..

from bootstrap3-dialog.

nakupanda avatar nakupanda commented on May 17, 2024

The rest of this issue is to decide the default value of autodestroy, it's better to make it a pull request.

Issue closed.

from bootstrap3-dialog.

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.