Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.23.1"></a>
## [2.23.1](https://github.com/ovh-ux/ovh-ui-angular/compare/v2.23.0...v2.23.1) (2019-01-08)


### Bug Fixes

* **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)



<a name="2.23.0"></a>
# [2.23.0](https://github.com/ovh-ux/ovh-ui-angular/compare/v2.22.2...v2.23.0) (2018-12-11)

Expand Down
10 changes: 5 additions & 5 deletions dist/oui-angular.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/oui-angular.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A set of maintainable components for the OVH ecosystem (Angular).",
"license": "BSD-3-Clause",
"author": "OVH SAS",
"version": "2.23.0",
"version": "2.23.1",
"keywords": [
"angular"
],
Expand Down
5 changes: 5 additions & 0 deletions packages/oui-select/src/select.controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { addBooleanParameter } from "@ovh-ui/common/component-utils";
import get from "lodash/get";

export default class {
constructor ($attrs, $compile, $element, $scope, $timeout) {
Expand Down Expand Up @@ -59,4 +60,8 @@ export default class {

this.onFocus();
}

getPropertyValue (item) {
return get(item, this.match, null);
}
}
2 changes: 1 addition & 1 deletion packages/oui-select/src/templates/match.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</span>
<span class="ui-select-match-text"
ng-hide="$select.isEmpty()"
ng-bind-html="$select.selected[$ctrl.match] || $select.selected">
ng-bind-html="$ctrl.getPropertyValue($select.selected) || $select.selected">
</span>
<span class="oui-icon oui-icon-chevron-down"></span>
</span>
Expand Down