Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit c7f15e5

Browse files
authored
Merge pull request #341 from ovh-ux/master
Sync master to develop
2 parents c4f8f72 + 429aa85 commit c7f15e5

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="2.23.1"></a>
2+
## [2.23.1](https://github.com/ovh-ux/ovh-ui-angular/compare/v2.23.0...v2.23.1) (2019-01-08)
3+
4+
5+
### Bug Fixes
6+
7+
* **oui-select:** add nested property support for match attribute ([#338](https://github.com/ovh-ux/ovh-ui-angular/issues/338)) ([6c87d73](https://github.com/ovh-ux/ovh-ui-angular/commit/6c87d73)), closes [#MANAGER-2056](https://github.com/ovh-ux/ovh-ui-angular/issues/MANAGER-2056)
8+
9+
10+
111
<a name="2.23.0"></a>
212
# [2.23.0](https://github.com/ovh-ux/ovh-ui-angular/compare/v2.22.2...v2.23.0) (2018-12-11)
313

dist/oui-angular.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/oui-angular.min.js.map

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
@@ -3,7 +3,7 @@
33
"description": "A set of maintainable components for the OVH ecosystem (Angular).",
44
"license": "BSD-3-Clause",
55
"author": "OVH SAS",
6-
"version": "2.23.0",
6+
"version": "2.23.1",
77
"keywords": [
88
"angular"
99
],

packages/oui-select/src/select.controller.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { addBooleanParameter } from "@ovh-ui/common/component-utils";
2+
import get from "lodash/get";
23

34
export default class {
45
constructor ($attrs, $compile, $element, $scope, $timeout) {
@@ -118,4 +119,8 @@ export default class {
118119
}
119120
});
120121
}
122+
123+
getPropertyValue (item) {
124+
return get(item, this.match, null);
125+
}
121126
}

packages/oui-select/src/templates/match.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</span>
1717
<span class="ui-select-match-text"
1818
ng-hide="$select.isEmpty()"
19-
ng-bind-html="$select.selected[$ctrl.match] || $select.selected">
19+
ng-bind-html="$ctrl.getPropertyValue($select.selected) || $select.selected">
2020
</span>
2121
<span class="oui-icon oui-icon-chevron-down"></span>
2222
</span>

0 commit comments

Comments
 (0)