Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Selectize dropdown selection outside of bootstrap modal window causes the modal to close

This may not be a clean solutuion. But you can set the modal to static when your "select" is opened, and change it back when select is clicked or lost focus.

$("#select_customer_name").on("focus", function(e) {
    modal.data('bs.modal')._config.backdrop = 'static';
});

$("#select_customer_name").on("blur", function(e) {
    modal.data('bs.modal')._config.backdrop = true;
});

Note: This works on Chrome, not on Firefox.

Tags:

Javascript

Html

Bootstrap 4

Selectize.Js

Related

What is the connection between laziness and purity? system() yields inconsistent results Create New Release is greyed out in Google Play Console Can you have two classes with the same name and the same member function in different translation units? CSES Range Query Question: Salary Queries COPY failed: stat /var/lib/docker/tmp/docker-xxx : no such file or directory Cardview Rounded Corners are not showing up in Screenshot? Seaborn ValueError: zero-size array to reduction operation minimum which has no identity How can I add a logo to a ggplot visualisation? Why does * need to be put before (&a) to subtract a (a is an array)? What is the pwa-node type launch configuration on VSCode? How can I tell GHC to satisfy a type-level <= constraint if I know it's true at runtime?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy