Skip to content

Commit

Permalink
Merge branch 'release/2.24.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
saschadube committed Dec 1, 2015
2 parents 9251f52 + 7853c5e commit 14bff18
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 2.24.2 (December 01, 2015)

- Fixed UIkit.Utils.stackMargin apply on container with only one child element
- Fixed hiding dropdown on click with option `mode:'hover'` for dropdown or items with class `uk-dropdown-close`

### 2.24.1 (November 30, 2015)

- Added uk-width-xlarge-* classes
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uikit",
"version": "2.24.1",
"version": "2.24.2",
"homepage": "http://getuikit.com",
"main": [
"./dist/css/uikit.min.css",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "uikit/uikit",
"type": "library",
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
"version": "2.24.1",
"version": "2.24.2",
"keywords": [],
"homepage": "http://getuikit.com/",
"authors": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,12 @@ <h3 class="tm-article-subtitle">Example</h3>
});
</code></pre>

<hr class="uk-article-divider">

<h2 id="css-options"><a href="#css-options" class="uk-link-reset">CSS options</a></h2>

<p>Add class <code>.uk-dropdown-close</code> to dropdown container or to item to hide dropdown when user click on item.</p>

</article>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/js/uikit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "uikit",
"title": "UIkit",
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
"version": "2.24.1",
"version": "2.24.2",
"homepage": "http://www.getuikit.com",
"author": {
"name": "UIkit",
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
if (!sticked.length) return;

for (var i = 0; i < sticked.length; i++) {
//sticked[i].reset(true);
sticked[i].self.computeWrapper();
sticked[i].reset(true);
//sticked[i].self.computeWrapper();
}

checkscrollposition();
Expand Down
2 changes: 1 addition & 1 deletion src/js/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

var UI = {}, _UI = global.UIkit ? Object.create(global.UIkit) : undefined;

UI.version = '2.24.1';
UI.version = '2.24.2';

UI.noConflict = function() {
// restore UIkit version
Expand Down
3 changes: 3 additions & 0 deletions src/js/core/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
}

if (active && active == $this) {
if (!$this.dropdown.find(e.target).length || $target.is(".uk-dropdown-close") || $target.parents(".uk-dropdown-close").length) {
$this.hide();
}
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/core/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
firstvisible = elements.filter(":visible:first"),
offset = firstvisible.length ? (firstvisible.position().top + firstvisible.outerHeight()) - 1 : false; // (-1): weird firefox bug when parent container is display:flex

if (offset === false) return;
if (offset === false || elements.length == 1) return;

elements.each(function() {

Expand Down

0 comments on commit 14bff18

Please sign in to comment.