mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	DSS-5577: Fixes user handling of enter key when searching for keywords
This commit is contained in:
		
							parent
							
								
									84711db105
								
							
						
					
					
						commit
						7167448bcb
					
				@ -354,6 +354,14 @@
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
  // This is a stop gap implementation to solve the issue with handling the enter key on user search
 | 
			
		||||
  document.querySelector('#searchInput')
 | 
			
		||||
      .addEventListener('keypress', ({keyCode}) => {
 | 
			
		||||
        if (keyCode === 13) {
 | 
			
		||||
          document.querySelector('#searchBtn').click();
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
        function advSearchForDataset()
 | 
			
		||||
        {
 | 
			
		||||
            var empty = true;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user