Hi!
First of all thank you for the awesome module. I am using it in 3 different places on my Intranet! Today I had a user complain about the search being broken and I couldn't reproduce the problem. Then he sent me a screen recording and I was like oh I never noticed. I think this is a bug but it might be by design. If the user presses enter in the search field instead of seeing the search results he is taken to the Upload page.
Software Versions
DNN: Platform 9.9
Module: V 4.1
To Reproduce: Input text in the Search field and instead of pressing Go hit enter. You will then be taken to the Upload page.
Expected Behavior: If a user presses enter the search results will display.
Workaround: I disabled the enter option in the Header in all of the templates.
<script type="text/javascript">
window.addEventListener('keydown',function(e){if(e.keyIdentifier=='U+000A'||e.keyIdentifier=='Enter'||e.keyCode==13){if(e.target.nodeName=='INPUT'&&e.target.type=='text'){e.preventDefault();return false;}}},true);
</script>
Hi!
First of all thank you for the awesome module. I am using it in 3 different places on my Intranet! Today I had a user complain about the search being broken and I couldn't reproduce the problem. Then he sent me a screen recording and I was like oh I never noticed. I think this is a bug but it might be by design. If the user presses enter in the search field instead of seeing the search results he is taken to the Upload page.
Software Versions
DNN: Platform 9.9
Module: V 4.1
To Reproduce: Input text in the Search field and instead of pressing Go hit enter. You will then be taken to the Upload page.
Expected Behavior: If a user presses enter the search results will display.
Workaround: I disabled the enter option in the Header in all of the templates.
<script type="text/javascript"> window.addEventListener('keydown',function(e){if(e.keyIdentifier=='U+000A'||e.keyIdentifier=='Enter'||e.keyCode==13){if(e.target.nodeName=='INPUT'&&e.target.type=='text'){e.preventDefault();return false;}}},true); </script>