Skip to content

Commit

Permalink
Updated component to version 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Mar 19, 2018
1 parent cd034c4 commit bf2b106
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 15 deletions.
7 changes: 6 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
### Version 2.3.0 - Feb 19, 2018
### Version 2.3.1 - Mar 19, 2018

- **Search** - Fixes using category search with `fullTextSearch: 'exact'` **@Thanks @prudho** returning duplicate results [#6223](https://github.com/Semantic-Org/Semantic-UI/issues/6223) [#6221](https://github.com/Semantic-Org/Semantic-UI/issues/6221)
- **Search** - Adds disabled variation **Thanks @prudho** [#6225](https://github.com/Semantic-Org/Semantic-UI/issues/6225)

### Version 2.3.0 - Feb 20, 2018

- **Search** - Category search can now work with local search by adding a `category` property to any result and specifying `type: 'category'`

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.0"
"version": "2.3.1"
}
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.0 - Search
* # Semantic UI 2.3.1 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -597,9 +597,10 @@ module.exports = function(parameters) {
addResult = function(array, result) {
var
notResult = ($.inArray(result, results) == -1),
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1)
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1),
notExactResults = ($.inArray(result, exactResults) == -1)
;
if(notResult && notFuzzyResult) {
if(notResult && notFuzzyResult && notExactResults) {
array.push(result);
}
}
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-search",
"version": "2.3.0",
"version": "2.3.1",
"title": "Semantic UI - Search",
"description": "Single component release of search",
"homepage": "http://www.semantic-ui.com",
Expand Down
14 changes: 13 additions & 1 deletion search.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.0 - Search
* # Semantic UI 2.3.1 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -252,6 +252,18 @@
color: rgba(0, 0, 0, 0.85);
}

/*--------------------
Disabled
----------------------*/


/* Disabled */
.ui.disabled.search {
cursor: default;
pointer-events: none;
opacity: 0.45;
}


/*******************************
Types
Expand Down
9 changes: 5 additions & 4 deletions search.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.0 - Search
* # Semantic UI 2.3.1 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -596,9 +596,10 @@ $.fn.search = function(parameters) {
addResult = function(array, result) {
var
notResult = ($.inArray(result, results) == -1),
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1)
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1),
notExactResults = ($.inArray(result, exactResults) == -1)
;
if(notResult && notFuzzyResult) {
if(notResult && notFuzzyResult && notExactResults) {
array.push(result);
}
}
Expand Down
4 changes: 2 additions & 2 deletions search.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 search.min.js

Large diffs are not rendered by default.

0 comments on commit bf2b106

Please sign in to comment.