diff --git a/source/engine/mecanismViews/Somme.js b/source/engine/mecanismViews/Somme.js index 3066e1da0..f4260e784 100644 --- a/source/engine/mecanismViews/Somme.js +++ b/source/engine/mecanismViews/Somme.js @@ -20,21 +20,25 @@ let Table = ({explanation}) =>
+/* La colonne peut au clic afficher une nouvelle colonne qui sera une autre somme imbriquée */ class Row extends Component { + state = { + folded: true + } render() { let {v, i} = this.props, rowFormula = path(["explanation", "formule", "explanation"], v), isSomme = rowFormula && rowFormula.name == "somme" return [ - + this.setState({folded: false})}> {i != 0 && "+"} {makeJsx(v)} , - ...(isSomme + ...(isSomme && !this.state.folded ? [