[DE PE SSE mobile] Fix Bug 50903
This commit is contained in:
parent
005bb841dc
commit
f1b4663ec4
|
@ -56,12 +56,15 @@ const CustomColors = ({ options, customColors, onColorClick, curColor }) => {
|
|||
></a>)
|
||||
}
|
||||
}
|
||||
|
||||
let indexCurColor = colors.indexOf(curColor);
|
||||
|
||||
return (
|
||||
<div className='palette'>
|
||||
{colors && colors.length > 0 && colors.map((color, index) => {
|
||||
return(
|
||||
<a key={`dc-${index}`}
|
||||
className={curColor && curColor === color ? 'active' : ''}
|
||||
className={curColor && curColor === color && index === indexCurColor ? 'active' : ''}
|
||||
style={{background: `#${color}`}}
|
||||
onClick={() => {onColorClick(color)}}
|
||||
></a>
|
||||
|
|
Loading…
Reference in a new issue