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