Button Go not work


#1

I’m doing a form that, when you fill in the value of the search he just press the phone’s keypad the Go button. But this action is not working, when you click Go, nothing happens, then the user has to close the keyboard and then click the button. Can someone help me?

<button type="submit" class="button button-block" ng-click="consultProcessName(name)"/>Consult</button>

#2

@makson_santos
You need to use ng-submit in the element, vs the ng-click on the submit button. Angular handles forms a little differently.

<form ng-submit="consultProcessName(name)">
  <input type="text" ng-model="name" name="name" />
  <button class="button button-full button-positive" type="submit">
</form>

https://docs.angularjs.org/api/ng/directive/ngSubmit

Hope this helps.

Good luck,

RGecy


#4

Thansk @rgecy
But he is not closing the keyboard after making the query. After bringing the reusiltados search, it does not hide the keyboard. Something else should be done?