Topic: Problem with submitting a form with autocomplete using Enter key

itay pro asked 6 years ago


A form that contains an autocomplete component cannot be submitted using the enter key. When the enter key button is pressed, it appears that an additional 'clear' button within the autocomplete component is pressed instead of the submit button that precedes it in the HTML DOM order. There are several alternatives:
  1. Moving the (click) event from the button to the <form>. Although this does submit, it also clears the first autocomplete component content and ignores
    [disabled]="!valid || form.pristine"
  2. Adding type="button" to the clear button as is used with other components. This cannot be done manually but rather should be changed within the component.
Please advise if there is a better way and/or when option 2 is going to be implemented. Thanks.

itay pro answered 6 years ago


Fixed in 6.2.5 !.....

Damian Gemza staff answered 6 years ago


Dear mdb2, Thanks for your report. This problem will be fixed with the next release of MDB Angular (second option). As a workaround for your problem: You could download our ng-uikit-pro-standard-compile version of MDB Angular, add your desired changes (type="button") to the autocomplete component template, and then run the below command:
 npm run compile
After compiling, you could install the compiled .tgz archive in your application. Here's the link to the ng-uikit-pro-standard-compile repository: LINK Best Regards, Damian

itay pro commented 6 years ago

Thanks, When is the next release due and will it be before in the #dev version ?

Arkadiusz Idzikowski staff commented 6 years ago

Next release date is October 10. It should be already on dev branch but only on Compile version.

itay pro commented 6 years ago

If compile version means that I need to compile, then I'll pass. When it will be ready for just installing #dev ?

Arkadiusz Idzikowski staff commented 6 years ago

It should be available later this week but I cannot guarantee it.

itay pro commented 6 years ago

Any update ?.......................

itay pro commented 6 years ago

Ping ..................

Arkadiusz Idzikowski staff commented 6 years ago

We will update dev version today.

itay pro commented 6 years ago

OK, please update

itay pro commented 6 years ago

Ping ....................

itay pro commented 6 years ago

Ping................

Arkadiusz Idzikowski staff commented 6 years ago

We have already updated MDB Angular to version 6.2.5. Are there still any problems with this component?


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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: NA
  • Browser: NA
  • OS: NA
  • Provided sample code: No
  • Provided link: No