Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

"Go" button triggers ng-submit for input types "text" and "search" but not "tel" or "number"

$
0
0

@VinceOPS wrote:

Hi everyone!

I'm new around there, and just started enjoying this good framework (discovered AngularJS at the same time) :wink:.

I'd like to know if someone has experienced the same issue:

Here's my piece of code:

<form name="searchForm" ng-submit="searchForm.$valid && ctrl.getReport()" novalidate>
	<div>
		<label class="item item-input">
			<i class="icon ion-search placeholder-icon"></i>
			<input 	type="search" ng-model="ctrl.reportNumber" 
					placeholder="Report Number" required>
		</label>
	</div>
</form>

If I type something in my "search" input, and press the "ok" button (bottom right corner of the Android keyboard), then the ng-submit code is executed. But if I change the type of input to "tel" or "number", the same "go" buttons doesn't trigger the ng-submit anymore.

Is it related to Angular, or Ionic? Should I create an issue on the GitHub?

Thanks!

Regards

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>