SearchNavigationMenu
SearchNavigationMenu copied to clipboard
Focus after input text delete
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 :
- Add additional code inside plug-in file :"searchNavMenu.js"
//----- 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();
}
});
- Or option if you will not use anymore IE 11 even better in that case remove that part of code :
In next release issue will be fixed with first option. (release > 2.1)
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.