How to remove target id from selected term reference field
You need alter autocomplete js like this 

 function theme_name_js_alter(&amp;$javascript, 
  \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
  $path = \Drupal::service('path.current')-&gt;getPath();
  $path_args = explode('/', $path);
   if($path_args[1] == 'twc-partners'){
   //kint($javascript);
     $javascript['core/misc/autocomplete.js']['data'] = drupal_get_path('theme', 'theme_name') . '/js/autocomplete-custom.js';
 } 
}


This code add in theme file .Please download file from here.