Skip to content

Commit 0f1bdca

Browse files
Updated component to version 2.4.1
1 parent 34ef7ce commit 0f1bdca

7 files changed

+18
-35
lines changed

RELEASE-NOTES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Version 2.4.1 - Oct 13, 2018
2+
3+
- **Dropdown** - `clearable` dropdown now works with dropdown that arent `on:click`, like `hover` or `manual` triggers. [#6594](https://github.com/Semantic-Org/Semantic-UI/issues/6594)
4+
15
### Version 2.4.0 - Sep 17, 2018
26

37
- **Dropdown** - Added `clearable` dropdowns. When `clearable: true` is specified an (X) will appear to clear dropdown selection [#2072](https://github.com/Semantic-Org/Semantic-UI/issues/2072)

bower.json

+4-20
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,8 @@
66
"name": "Jack Lukic",
77
"web": "http://www.jacklukic.com"
88
},
9-
"ignore": [
10-
"docs",
11-
"node",
12-
"server",
13-
"spec",
14-
"src",
15-
"test"
16-
],
17-
"keywords": [
18-
"semantic",
19-
"ui",
20-
"css3",
21-
"framework"
22-
],
23-
"license": [
24-
"http://semantic-ui.mit-license.org/"
25-
],
26-
"main": [
27-
"dropdown.css"
28-
]
9+
"ignore": ["docs", "node", "server", "spec", "src", "test"],
10+
"keywords": ["semantic", "ui", "css3", "framework"],
11+
"license": ["http://semantic-ui.mit-license.org/"],
12+
"main": ["dropdown.css"]
2913
}

composer.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
"web": "http://www.jacklukic.com",
99
"role": "Creator"
1010
}],
11-
"keywords": [
12-
"semantic",
13-
"ui",
14-
"css",
15-
"framework"
16-
],
11+
"keywords": ["semantic", "ui", "css", "framework"],
1712
"license": "MIT",
18-
"version": "2.4.0"
13+
"version": "2.4.1"
1914
}

dropdown.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.4.0 - Dropdown
2+
* # Semantic UI 2.4.1 - Dropdown
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -605,7 +605,6 @@ $.fn.dropdown = function(parameters) {
605605
else {
606606
if(settings.on == 'click') {
607607
$module
608-
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
609608
.on('click' + eventNamespace, module.event.test.toggle)
610609
;
611610
}
@@ -621,6 +620,7 @@ $.fn.dropdown = function(parameters) {
621620
;
622621
}
623622
$module
623+
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
624624
.on('mousedown' + eventNamespace, module.event.mousedown)
625625
.on('mouseup' + eventNamespace, module.event.mouseup)
626626
.on('focus' + eventNamespace, module.event.focus)
@@ -1022,7 +1022,7 @@ $.fn.dropdown = function(parameters) {
10221022
if($icon.hasClass(className.clear)) {
10231023
module.clear();
10241024
}
1025-
else {
1025+
else if (module.can.click()) {
10261026
module.toggle();
10271027
}
10281028
}

dropdown.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.4.0 - Dropdown
2+
* # Semantic UI 2.4.1 - Dropdown
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -606,7 +606,6 @@ module.exports = function(parameters) {
606606
else {
607607
if(settings.on == 'click') {
608608
$module
609-
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
610609
.on('click' + eventNamespace, module.event.test.toggle)
611610
;
612611
}
@@ -622,6 +621,7 @@ module.exports = function(parameters) {
622621
;
623622
}
624623
$module
624+
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
625625
.on('mousedown' + eventNamespace, module.event.mousedown)
626626
.on('mouseup' + eventNamespace, module.event.mouseup)
627627
.on('focus' + eventNamespace, module.event.focus)
@@ -1023,7 +1023,7 @@ module.exports = function(parameters) {
10231023
if($icon.hasClass(className.clear)) {
10241024
module.clear();
10251025
}
1026-
else {
1026+
else if (module.can.click()) {
10271027
module.toggle();
10281028
}
10291029
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "semantic-ui-dropdown",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"title": "Semantic UI - Dropdown",
55
"description": "Single component release of dropdown",
66
"homepage": "http://www.semantic-ui.com",

0 commit comments

Comments
 (0)