From 63449e9b0446b73a572b76c8c1707d0ea308c1c8 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Fri, 17 Jun 2016 12:14:51 -0700 Subject: [PATCH] cleanup --- lib/components/content.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/components/content.js b/lib/components/content.js index 4d5b5758a..46447a392 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -99,14 +99,10 @@ class Content extends React.Component { onBeforeInput(e) { let { state } = this.props const { data } = e - - // If there is no data to input, there's nothing to do. if (!data) return + e.preventDefault() - - // If the state is expanded, we will have to re-render. if (state.isExpanded) state = state.delete() - state = state.insert(data) this.onChange(state) }