SearchNavigationMenu icon indicating copy to clipboard operation
SearchNavigationMenu copied to clipboard

Focus after input text delete

Open grlicaa opened this issue 5 years ago • 1 comments

Problem was because IE has option icon "X" to empty input field. Due to that legacy code bug appears.

In order to fix bug you have 2 options :

  1. Add additional code inside plug-in file :"searchNavMenu.js" image
	//----- Clear field IE problem, it's not on KEYUP
	$("input.srch_input").bind('input propertychange', function(e, pageEvent) {
		if (this.value == "") {
			var currItem = document.activeElement;
			setCurrentNav(item_id);
			if (!pageEvent)
				saveSesSateNav(""); 
			if (SNMOptions.UseFocus)
				currItem.focus();			
			else
				$(this).focus();
		}
	});
  1. Or option if you will not use anymore IE 11 even better in that case remove that part of code : image

In next release issue will be fixed with first option. (release > 2.1)

grlicaa avatar Oct 19 '20 13:10 grlicaa

For now, as a workaround, you can manually change the JavaScript library inside your plugin. Only (docs/searchNavMenu.js) file. inside that file issues, 8 - 11 are fixed.

grlicaa avatar Feb 08 '25 20:02 grlicaa