diff --git a/docs/src/pages/demos/selects/SimpleSelect.js b/docs/src/pages/demos/selects/SimpleSelect.js index d85adb27e801f1..9eb27973da2e5c 100644 --- a/docs/src/pages/demos/selects/SimpleSelect.js +++ b/docs/src/pages/demos/selects/SimpleSelect.js @@ -33,7 +33,7 @@ class SimpleSelect extends React.Component { const classes = this.props.classes; return ( -
+
Age ', () => { events.forEach(n => { const event = n.charAt(2).toLowerCase() + n.slice(3); wrapper.find('input').simulate(event); - assert.strictEqual( - handlers[n].callCount, - n === 'onChange' ? 2 : 1, - `should have called the ${n} handler`, - ); + assert.strictEqual(handlers[n].callCount, 1, `should have called the ${n} handler`); }); });