From 454648754b47f535264a0c1a893cbdb022191202 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Sat, 9 Sep 2017 11:36:57 -0500 Subject: [PATCH] [Input] Dodge the BFcache issue (#8110) --- docs/src/pages/demos/selects/SimpleSelect.js | 4 +-- .../src/pages/demos/text-fields/TextFields.js | 2 +- .../getting-started/supported-components.md | 9 ++++--- src/Input/Input.js | 25 ++++++++----------- src/Input/Input.spec.js | 6 +---- 5 files changed, 20 insertions(+), 26 deletions(-) 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`); }); });