Topic: Autocomplete issue within a form
Zhao
pro
asked 7 years ago
I have an issue with an autocomplete within the form. If I type something it appears the suggestions below and when I press enter it deletes the input. When I take out the autocomplete of the form it acts normal, I type something and autocompletes.
Add comment
Zhao
pro
answered 7 years ago
I found the solution.
$(document).keypress(
function(event){
if (event.which == '13') {
event.preventDefault();
}
});
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No