Skip to content

Commit

Permalink
Updated component to version 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Jun 18, 2018
1 parent a8eb98e commit b78e264
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 17 deletions.
8 changes: 6 additions & 2 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Version 2.3.1 - Mar 19, 2018
### Version 2.3.2 - June 18, 2018

- **Dropdown** Fixed bug that could cause dropdown to recursively trigger network requests specifically when using `apiSettings` with a url that returns valid response but with no results when clicking directly on the `dropdown icon`. **Thanks @vpeti** [#5231](https://github.com/Semantic-Org/Semantic-UI/issues/5231) [#5809](https://github.com/Semantic-Org/Semantic-UI/issues/5809)

### Version 2.3.1 - Mar 18, 2018

- **Dropdown** - Fixed issue in `2.3.0` that could cause multiselect dropdowns initialized by converting `<select>` to not add initial selected options. [#6123](https://github.com/Semantic-Org/Semantic-UI/issues/6123)
- **Dropdown** - Fixed `onChange` missing `text` from callback when dropdown is set to `action: 'select'` [#4183](https://github.com/Semantic-Org/Semantic-UI/issues/4183) [#4510](https://github.com/Semantic-Org/Semantic-UI/issues/4510)
- **Dropdown** - Fixed `onChange` missing `text` from callback when dropdown is set to `action: 'select'` **Thanks @martinduparc** [#4183](https://github.com/Semantic-Org/Semantic-UI/issues/4183) [#4510](https://github.com/Semantic-Org/Semantic-UI/issues/4510)

### Version 2.3.0 - Feb 20, 2018

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"framework"
],
"license": "MIT",
"version": "2.3.1"
"version": "2.3.2"
}
2 changes: 1 addition & 1 deletion dropdown.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.1 - Dropdown
* # Semantic UI 2.3.2 - Dropdown
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down
19 changes: 14 additions & 5 deletions dropdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.1 - Dropdown
* # Semantic UI 2.3.2 - Dropdown
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -754,10 +754,19 @@ $.fn.dropdown = function(parameters) {
callback();
},
onSuccess : function(response) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
var
values = response[fields.remoteValues],
hasRemoteValues = ($.isArray(values) && values.length > 0)
;
if(hasRemoteValues) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
}
else {
module.add.message(message.noResults);
}
callback();
}
}
Expand Down
2 changes: 1 addition & 1 deletion dropdown.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dropdown.min.js

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.1 - Dropdown
* # Semantic UI 2.3.2 - Dropdown
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -755,10 +755,19 @@ module.exports = function(parameters) {
callback();
},
onSuccess : function(response) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
var
values = response[fields.remoteValues],
hasRemoteValues = ($.isArray(values) && values.length > 0)
;
if(hasRemoteValues) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
}
else {
module.add.message(message.noResults);
}
callback();
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-dropdown",
"version": "2.3.1",
"version": "2.3.2",
"title": "Semantic UI - Dropdown",
"description": "Single component release of dropdown",
"homepage": "http://www.semantic-ui.com",
Expand Down

0 comments on commit b78e264

Please sign in to comment.