[DE] Fix Bug 56545

This commit is contained in:
Andrey Shimagin 2022-04-12 10:33:52 +03:00
parent ef7fef6b28
commit dacbc17eca
2 changed files with 6 additions and 5 deletions

View file

@ -617,6 +617,7 @@ class MainController extends Component {
default:
storeTextSettings.resetBullets(-1);
storeTextSettings.resetNumbers(-1);
storeTextSettings.resetMultiLevel(-1);
}
});
this.api.asc_registerCallback('asc_onPrAlign', (align) => {

View file

@ -286,11 +286,11 @@ const PageMultiLevel = observer(props => {
<View className='multilevels dataview'>
<List className="row" style={{listStyle: 'none'}}>
{arrayMultiLevel.map((item) => (
<ListItem key={'multi-level-' + item.type} data-type={item.type} className={item.type === typeMultiLevel ? 'active' : ''}
onClick={(e) => {
item.type === -1 ? storeTextSettings.resetMultiLevel(-1) : storeTextSettings.resetMultiLevel(null);
props.onMultiLevelList(item.type);
}}>
<ListItem
key={'multi-level-' + item.type}
data-type={item.type}
className={item.type === typeMultiLevel && storeTextSettings.listType === -1 ? 'active' : ''}
onClick={() => props.onMultiLevelList(item.type)}>
{item.thumb.length < 1 ?
<Icon className="thumb" style={{position: 'relative'}}>
<label>{t('Edit.textNone')}</label>