Datepicker opens when pressing enter key on separate text in


Topic: Datepicker opens when pressing enter key on separate text input

fgwebdev asked 5 years ago

Expected behavior Datepicker only opens when the associated input is clicked or given focus.

Actual behavior Datepicker opens when the enter key is pressed while a text input anywhere else on the page is highlighted. This includes standard text inputs as well as searchable select inputs. It only happens the first time the enter key is pressed.


Grzegorz Bujański staff commented 5 years ago

Hi. Please update to 4.10.1


fgwebdev commented 5 years ago

Our download for 4.10.1 does not contain any files. 4.10.0 does not fix the issue.


Grzegorz Bujański staff commented 5 years ago

I can't reproduce this problem. Create a snippet here with the code that causes the problem: https://mdbootstrap.com/snippets/


exensio pro premium priority answered 5 years ago

We have the same problem and here is an example snipet that shows the problem: https://mdbootstrap.com/snippets/jquery/exensio/1806375

It occurs as already said only the first time. In general the pressing of enter in a field should trigger the sending of the form and not openening the date picker.


Grzegorz Bujański staff commented 5 years ago

Hi, thank you for report this issue. We are currently planning to change ours datepicker, and then we will fix this.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.8
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No