To remove double tap for iphone and submit form on selecting suggestion using views autocomplete filters in Drupal 8

Suppose you have a two fields such as title, description. We assume both the fields do not have html tags in it. We have set up a view to list the title and description. We also have a title as the exposed filter with auto complete. Most of our clients want new modifications every day. My client also wanted to submit the form on selecting the suggestion from the drop down below the form field.

Here is the code we’ve done to bring this change,

       jQuery('html').on('click touchstart','.ui-autocomplete li a', function(e){
          var text = jQuery(this).html();
Drupal version: