Fix chekbox's in ColorSchemes
This commit is contained in:
parent
5d0a1b5e00
commit
d4d07c2ad1
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue