File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/AutoCompleteTextarea Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 || '' } ` }
You can’t perform that action at this time.
0 commit comments