From 363c5746dbcf3c27826af074bc9ac93a27d32b9c Mon Sep 17 00:00:00 2001 From: Federico Zivolo Date: Tue, 23 Jan 2018 13:39:09 +0100 Subject: [PATCH] docs: Released 4.1.0 --- _config.yml | 8 ++++---- assets/css/docs.css | 2 +- assets/css/docs.min.css | 2 +- docs/4.0/getting-started/javascript.md | 10 ++++++++++ index.html | 2 +- js/dropdown.js | 4 ++-- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/_config.yml b/_config.yml index ef418fec..76098a5a 100644 --- a/_config.yml +++ b/_config.yml @@ -31,14 +31,14 @@ social_logo_path: /assets/brand/bootstrap-social-logo.png social_image_path: /assets/brand/bootstrap-social.png # Custom vars -current_version: 4.0.0 +current_version: 4.1.0 docs_version: 4.0 repo: https://github.com/FezVrasta/bootstrap-material-design spectrum: https://spectrum.chat/bootstrap-md download: source: https://github.com/FezVrasta/bootstrap-material-design/releases - dist: https://github.com/FezVrasta/bootstrap-material-design/archive/v4.0.0.zip + dist: https://github.com/FezVrasta/bootstrap-material-design/archive/v4.1.0.zip blog: https://blog.getbootstrap.com expo: https://expo.getbootstrap.com @@ -48,9 +48,9 @@ mdbootstrap: https://mdbootstrap.com/product/material-design-for-bootstrap- cdn: # See https://www.srihash.org for info on how to generate the hashes - css: https://unpkg.com/bootstrap-material-design@4.0.0/dist/css/bootstrap-material-design.min.css + css: https://unpkg.com/bootstrap-material-design@4.1.0/dist/css/bootstrap-material-design.min.css css_hash: "sha384-R80DC0KVBO4GSTw+wZ5x2zn2pu4POSErBkf8/fSFhPXHxvHJydT0CSgAP2Yo2r4I" - js: https://unpkg.com/bootstrap-material-design@4.0.0/dist/js/bootstrap-material-design.js + js: https://unpkg.com/bootstrap-material-design@4.1.0/dist/js/bootstrap-material-design.js js_hash: "sha384-3xciOSDAlaXneEmyOo0ME/2grfpqzhhTcM4cE32Ce9+8DW/04AGoTACzQpphYGYe" jquery: https://code.jquery.com/jquery-3.2.1.slim.min.js jquery_hash: "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" diff --git a/assets/css/docs.css b/assets/css/docs.css index c68ca427..65c88380 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -10,7 +10,7 @@ font-weight: normal; } /*! - * Bootstrap v4.0.0 (https://getbootstrap.com) + * Bootstrap v4.1.0 (https://getbootstrap.com) * Copyright 2011-2018 The Bootstrap Authors * Copyright 2011-2018 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) diff --git a/assets/css/docs.min.css b/assets/css/docs.min.css index 9ee80a53..9a50b174 100644 --- a/assets/css/docs.min.css +++ b/assets/css/docs.min.css @@ -7,7 +7,7 @@ */.card{font-size:.875rem;font-weight:400} /*! - * Bootstrap v4.0.0 (https://getbootstrap.com) + * Bootstrap v4.1.0 (https://getbootstrap.com) * Copyright 2011-2018 The Bootstrap Authors * Copyright 2011-2018 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 0c1eb5f3..d955534c 100755 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -130,3 +130,13 @@ Bootstrap's plugins don't fall back particularly gracefully when JavaScript is d All Bootstrap's JavaScript files depend on `util.js` and it has to be included alongside the other JavaScript files. If you're using the compiled (or minified) `bootstrap.js`, there is no need to include this—it's already there. `util.js` includes utility functions and a basic helper for `transitionEnd` events as well as a CSS transition emulator. It's used by the other plugins to check for CSS transition support and to catch hanging transitions. + +## Dynamically generated elements + +If you use Material Design for Bootstrap on a project handled by Angular, React or other frameworks +that dynamically generate and append new elements to the document, you'll need to manually +call the Material Design for Bootstrap javascript functions to initialize new elements such +as inputs. + +Alternatively, you can include [arrive.js](https://github.com/uzairfarooq/arrive) before the MDB +javascript to automatically initialize any dynamically generated element. \ No newline at end of file diff --git a/index.html b/index.html index 6b833830..9d5c6f33 100755 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ npm install bootstrap-material-design@{{ site.current_version }} {% endhighlight %} {% highlight sh %} -gem install bootstrap-material-design -v 4.0.0 +gem install bootstrap-material-design -v 4.1.0 {% endhighlight %} {% highlight sh %} diff --git a/js/dropdown.js b/js/dropdown.js index 99d2d876..29aa1521 100644 --- a/js/dropdown.js +++ b/js/dropdown.js @@ -10,7 +10,7 @@ import Util from 'bootstrap/js/src/util'; /** * -------------------------------------------------------------------------- - * Bootstrap (v4.0.0): dropdown.js + * Bootstrap (v4.1.0): dropdown.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ @@ -32,7 +32,7 @@ const Dropdown = (($) => { */ const NAME = 'dropdown' - const VERSION = '4.0.0' + const VERSION = '4.1.0' const DATA_KEY = 'bs.dropdown' const EVENT_KEY = `.${DATA_KEY}` const DATA_API_KEY = '.data-api'