[DE mobile] Fix Bug 54281

This commit is contained in:
SergeyEzhin 2021-12-09 19:23:20 +04:00
parent 2dd106c435
commit b43516d807
2 changed files with 12 additions and 2 deletions

View file

@ -888,6 +888,16 @@ input[type="number"]::-webkit-inner-spin-button {
height: 100%;
}
.dropdown-list {
&__placeholder {
opacity: 0.6;
.item-inner {
border-bottom: 1px solid var(--f7-list-item-border-color);
}
}
}

View file

@ -8,9 +8,9 @@ const PageDropdownList = props => {
return (
<View style={props.style}>
<Page>
<List>
<List className="dropdown-list">
{listItems.length && listItems.map((elem, index) => (
<ListItem key={index} className='no-indicator' style={index === 0 ? {opacity: 0.6} : null} title={elem.caption} onClick={() => props.onChangeItemList(elem.value)}></ListItem>
<ListItem key={index} className={'no-indicator ' + (index === 0 ? 'dropdown-list__placeholder' : '')} title={elem.caption} onClick={() => props.onChangeItemList(elem.value)}></ListItem>
))}
</List>
</Page>