Topic: First character occurs twice in search box

exensio priority asked 4 years ago


Expected behavior When clicking a select box the dropdown is opening. When I now directly start typing one character it should occur only one time in the search box.

Actual behavior When clicking the select box one time the dropdown is opening as expected.

When you now directly start typing, the first character is inserted twice in the searchbox. If you for example type "a" you will see "aa" in the search box.

The problem occurs when you have more than one select box on a page.

Resources (screenshots, code snippets etc.) Example for reproducing the problem: https://mdbootstrap.com/snippets/jquery/exensio/1806964


Mateusz Łubianka staff answered 4 years ago


Hi @exensio,

You use MDB 4.10.1, and a bug was present in this version od MDB. I created a snippet with your code but with latest version of MDB. Check it out: https://mdbootstrap.com/snippets/jquery/mateusz-lubianka/1809518?action=forum_snippet

Best,


exensio priority commented 4 years ago

Thank you, I tested our code with the new version and it is now working fine.


Mateusz Łubianka staff commented 4 years ago

I'm glad I could help :)

Best,



Please insert min. 20 characters.

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: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.10.1
  • Device: notebook
  • Browser: chrome / firefox
  • OS: everywhere
  • Provided sample code: No
  • Provided link: Yes