Fix #427 - don't suggest hashtag if the search value contains a space
This commit is contained in:
		
							parent
							
								
									1d5cbfa356
								
							
						
					
					
						commit
						7d7a11250c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -23,7 +23,7 @@ const normalizeSuggestions = (state, value, accounts) => {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (value.indexOf('@') === -1) {
 | 
					  if (value.indexOf('@') === -1 && value.indexOf(' ') === -1) {
 | 
				
			||||||
    newSuggestions.push({
 | 
					    newSuggestions.push({
 | 
				
			||||||
      title: 'hashtag',
 | 
					      title: 'hashtag',
 | 
				
			||||||
      items: [
 | 
					      items: [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue