Fix chekbox's in ColorSchemes

This commit is contained in:
ShimaginAndrey 2021-10-01 16:40:49 +03:00
parent 5d0a1b5e00
commit d4d07c2ad1
3 changed files with 6 additions and 12 deletions

View file

@ -174,10 +174,8 @@ const PageDocumentColorSchemes = props => {
return (
<ListItem radio={true} className="color-schemes-menu no-fastclick" key={index} title={(index < 22) ? (SchemeNames[index] || name) : name} checked={stateScheme === index}
onChange={() => {
if(index !== curScheme) {
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 10);
};
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 10);
}}>
<div slot="before-title">
<span className="color-schema-block">

View file

@ -56,10 +56,8 @@ const PagePresentationColorSchemes = props => {
return (
<ListItem radio={true} className="color-schemes-menu no-fastclick" key={index} title={(index < 22) ? (SchemeNames[index] || name) : name} checked={stateScheme === index}
onChange={() => {
if(index !== curScheme) {
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 10);
};
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 10);
}}>
<div slot="before-title">
<span className="color-schema-block">

View file

@ -29,10 +29,8 @@ const PageSpreadsheetColorSchemes = props => {
return (
<ListItem radio={true} className="color-schemes-menu no-fastclick" key={index} title={(index < 22) ? (SchemeNames[index] || name) : name} checked={stateScheme === index}
onChange={() => {
if(index !== curScheme) {
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 15);
};
setScheme(index);
setTimeout(() => props.onColorSchemeChange(index), 15);
}}>
<div slot="before-title">
<span className="color-schema-block">