Skip to content

Commit

Permalink
need to fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
redmannequin committed Apr 13, 2019
1 parent e601943 commit 9fa70ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion client/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@
display: none;
}


.react-tags__suggestions {
position: absolute;
position: inherit;
top: 100%;
left: 0;
width: 100%;
Expand Down
15 changes: 9 additions & 6 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ class App extends Component<any, State> {

<div className="container">

<ReactTags
tags={tags}
suggestions={suggestions}
handleDelete={this.handleDelete}
handleAddition={this.handleAddition}
/>
<div>
<ReactTags
tags={tags}
suggestions={suggestions}
handleDelete={this.handleDelete}
handleAddition={this.handleAddition}
/>
</div>

<br/>

Expand All @@ -108,6 +110,7 @@ class App extends Component<any, State> {
private updateRecipes(state: State) {
const tags = state.tags;
if (tags.length == 0 ) {
state.recipes = [];
this.setState(state);
return;
}
Expand Down

0 comments on commit 9fa70ad

Please sign in to comment.