Skip to content

Commit 2090129

Browse files
committed
chore(release): version 2.3.6
1 parent 61d983f commit 2090129

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 2.3.6 (2017-07-13)
2+
3+
4+
#### Bug Fixes
5+
6+
* Fix highlight label formatting ([e652323](https://github.com/ubilabs/react-geosuggest/commit/e652323ae2bfef1fc823b91ec69609d51dbdc035))
7+
8+
19
### 2.3.5 (2017-07-11)
210

311

‎dist/react-geosuggest.js‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,15 +2600,24 @@ var SuggestItem = function (_React$Component) {
26002600
var start = suggest.matchedSubstrings.offset,
26012601
length = suggest.matchedSubstrings.length,
26022602
end = start + length,
2603-
split = suggest.label.split(''),
26042603
boldPart = this.makeBold(suggest.label.substring(start, end), suggest.label);
26052604

2606-
split.splice(start, length, boldPart);
2605+
var pre = '',
2606+
post = '';
2607+
2608+
if (start > 0) {
2609+
pre = suggest.label.slice(0, start);
2610+
}
2611+
if (end < suggest.label.length) {
2612+
post = suggest.label.slice(end);
2613+
}
26072614

26082615
return _react2.default.createElement(
26092616
'span',
26102617
null,
2611-
split
2618+
pre,
2619+
boldPart,
2620+
post
26122621
);
26132622
}
26142623

‎dist/react-geosuggest.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-geosuggest",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"description": "A React autosuggest for the Google Maps Places API.",
55
"main": "module/Geosuggest.js",
66
"author": "Robert Katzki <katzki@ubilabs.net>",

0 commit comments

Comments
 (0)