pwewegama
Forum Replies Created
-
@pauplesupport – Thank you for the new release. I noticed that it hasn’t been tested with the latest version of WP according to the ReadMe file. Is it safe to use it with WP 5.4.1?
Thank you for following up on this. I look forward to the new release!
Thank you. I appreciate it. Looking forward to it!
- This reply was modified 4 years, 9 months ago by pwewegama.
While this issue is being worked on, you can use this work around: use a JavaScript event listener to listen for the enter key being pressed from the Helpie FAQ search box and cancel the event from propagating (and refreshing the page). Works like a charm.
If you are using Elementor, simply include the script below using the HTML Code widget in Elementor on each page you have the Helpie FAQ widget.
If you are using a normal WordPress page/post to display the Helpie FAQ widget, you can use Code Embed plugin to insert the JS code below. It’s free. Follow the instructions on the Code Embed plugin page to see how to insert JavaScript in a WP page/post.
<script> window.addEventListener('keydown', function(e) { if (e.keyIdentifier == 'U+000A' || e.keyIdentifier == 'Enter' || e.keyCode == 13) { if (e.target.className === 'search__input live-search-box') { e.preventDefault(); return false; } } }, true); </script>
- This reply was modified 4 years, 9 months ago by pwewegama.