[SSE mobile] Fix Bug 55374
This commit is contained in:
parent
0dd2e4bc8f
commit
ad63fe3e76
|
@ -13,16 +13,16 @@ class DropdownListController extends Component {
|
||||||
isOpen: false
|
isOpen: false
|
||||||
};
|
};
|
||||||
|
|
||||||
Common.Notifications.on('openDropdownList', addArr => {
|
Common.Notifications.on('openDropdownList', (textArr, addArr) => {
|
||||||
this.initDropdownList(addArr);
|
this.initDropdownList(textArr, addArr);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
initDropdownList(addArr) {
|
initDropdownList(textArr, addArr) {
|
||||||
this.listItems = addArr.map(item => {
|
this.listItems = textArr.map((item, index) => {
|
||||||
return {
|
return {
|
||||||
caption: item.getTextValue(),
|
caption: item,
|
||||||
value: item
|
value: addArr ? addArr[index] : item
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -455,7 +455,7 @@ class MainController extends Component {
|
||||||
dropdownListTarget.css({left: `${showPoint[0]}px`, top: `${showPoint[1]}px`});
|
dropdownListTarget.css({left: `${showPoint[0]}px`, top: `${showPoint[1]}px`});
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.Notifications.trigger('openDropdownList', addArr);
|
Common.Notifications.trigger('openDropdownList', textArr, addArr);
|
||||||
} else {
|
} else {
|
||||||
!validation && f7.dialog.create({
|
!validation && f7.dialog.create({
|
||||||
title: t('Controller.Main.notcriticalErrorTitle'),
|
title: t('Controller.Main.notcriticalErrorTitle'),
|
||||||
|
|
Loading…
Reference in a new issue