Skip to content

Commit f579c76

Browse files
authored
Merge pull request formio#769 from formio/bugfix/for-1657-select-values-template
Bugfix/FOR-1657: Select component Values template.
2 parents 74f11a0 + 2da50a3 commit f579c76

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### Fixed
1212
- FOR-1595: Placement of description for Edit Grid
13+
- Select component Values template.
1314

1415
## 3.6.13
1516
### Fixed

src/components/select/Select.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ export default class SelectComponent extends BaseComponent {
4848
// Keep track of the select options.
4949
this.selectOptions = [];
5050

51-
// See if this should use the template.
52-
this.useTemplate = (this.component.dataSrc !== 'values') && this.component.template;
53-
5451
// If this component has been activated.
5552
this.activated = false;
5653

@@ -89,7 +86,7 @@ export default class SelectComponent extends BaseComponent {
8986
}
9087

9188
// Perform a fast interpretation if we should not use the template.
92-
if (data && !this.useTemplate) {
89+
if (data && !this.component.template) {
9390
const itemLabel = data.label || data;
9491
return (typeof itemLabel === 'string') ? this.t(itemLabel) : itemLabel;
9592
}

0 commit comments

Comments
 (0)