Skip to content

Commit

Permalink
Fix the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerpena committed Apr 27, 2020
1 parent 41de7fe commit f78f337
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,8 @@ export class App extends React.Component<{}, AppState> {
classes={{
suggestionsDropdown: "bbbb"
}}
textAreaComponent={CustomTextArea}
/>
</div>
);
}
}

const CustomTextArea = React.forwardRef((props: any, ref: any) => {
const style = { ...props.style, backgroundColor: "blue" };
return <textarea {...props} style={style} ref={ref} />;
});

0 comments on commit f78f337

Please sign in to comment.