Comments (8)
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.
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.
See the description of option 'autodestroy' in the crude documentation here: http://nakupanda.github.io/bootstrap3-dialog/#available-options
from bootstrap3-dialog.
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.
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.
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.
Still thinking..
from bootstrap3-dialog.
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)
- How to create two buttons in line
- How to use Text and Form in one Modal window
- Issue with bootstrap-4.0 HOT 2
- For bootstrap 4.1 HOT 3
- Requiring 'bootstrap3-dialog' in Webpack/Laravel Mix results in Bootstrap/Navbar javascript not working HOT 3
- Uncaught ReferenceError: BootstrapDialog is not defined
- How to give a prompt when loading a remote page
- Multiple dialog
- function to retreive response from dialog HOT 1
- Wrong padding-right value (propbably a little bug) HOT 1
- bootstrap and jquery are missing from dependencies
- On close of BootstrapDialog.show, html body tag removed - blank page rendered
- Add Prompt-dialog HOT 1
- Change default position of the dialog box - to centre of screen ?
- Code broken on bootstrap 4.3 HOT 8
- Issues trying to update Composer Related to this Package HOT 1
- Hi... why BootstrapDialog (bootstrap4.3) not load JS files ( magicSuggest.js. or jquery.validate.js) HOT 1
- Is there any plan to upgrade Bootstrap5? HOT 4
- not expanding modal as the content !
- bootstrap-5.2.1 version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap3-dialog.