Skip to content

Commit 2790be9

Browse files
committed
cleanup
1 parent 0cf5d5f commit 2790be9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/AutoCompleteTextarea/Textarea.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,13 +634,15 @@ class ReactTextareaAutocomplete extends React.Component {
634634
SuggestionList = DefaultSuggestionList,
635635
} = this.props;
636636

637+
let { maxRows } = this.props;
638+
637639
const { component, currentTrigger, dataLoading, value } = this.state;
638640

639641
const selectedItem = this._getItemOnSelect();
640642
const suggestionData = this._getSuggestions();
641643
const textToReplace = this._getTextToReplace();
642644

643-
const SuggestionListDropDown = () => {
645+
const SuggestionListContainer = () => {
644646
if (
645647
(dataLoading || suggestionData) &&
646648
currentTrigger &&
@@ -674,7 +676,6 @@ class ReactTextareaAutocomplete extends React.Component {
674676
return null;
675677
};
676678

677-
let { maxRows } = this.props;
678679
if (!this.props.grow) maxRows = 1;
679680

680681
return (
@@ -684,7 +685,7 @@ class ReactTextareaAutocomplete extends React.Component {
684685
}`}
685686
style={containerStyle}
686687
>
687-
<SuggestionListDropDown />
688+
<SuggestionListContainer />
688689
<Textarea
689690
{...this._cleanUpProps()}
690691
className={`rta__textarea ${className || ''}`}

0 commit comments

Comments
 (0)