From 23a1fdca7502c6ba3deeccd044a415b53847d1f1 Mon Sep 17 00:00:00 2001 From: lukas Date: Mon, 15 Jun 2020 22:02:34 +0200 Subject: [PATCH] fixing preventdefault function not found error --- src/pages/HomePage/HomePage.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/HomePage/HomePage.js b/src/pages/HomePage/HomePage.js index aadc73b..438833e 100644 --- a/src/pages/HomePage/HomePage.js +++ b/src/pages/HomePage/HomePage.js @@ -124,17 +124,16 @@ class HomePage extends React.Component {
Home Page {this.state.tag} Videos - {this.state.selectionnr} -
+ { + e.preventDefault(); + this.searchVideos(this.keyword); + }}> { this.keyword = e.target.value }}/> - +