dropdown element name without translation
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-04-26 12:41:30 +02:00
parent ed8705a50c
commit 145a5e85eb
1 changed files with 2 additions and 1 deletions

View File

@ -277,6 +277,7 @@ export default class DropDown extends Component {
if (data) {
for (let i = 0; i < data.length; i++) {
let option = data[i];
option.orgShowField = option[this.showField];
if (this.translateFields) {
option = Object.assign({}, option);
@ -286,7 +287,7 @@ export default class DropDown extends Component {
let li = this.document.createElement('li');
li.setAttribute('name', option[this.showField]);
li.setAttribute('name', option.orgShowField);
fragment.appendChild(li);
if (this.multiple) {