<ion-view title="{{processName}}">
<ion-content class="has-header" pdk-next-input-on-enter>
<div ng-repeat="row in rows" class="row">
<div ng-repeat="content in row.widgets" class="col col-{{content.percentage}}">
<div ng-switch on="content.type">
<div ng-switch-when="label">
<div class="input-label" style="white-space: nowrap;color: {{content.foreColor}}">{{content.value}}</div>
</div>
<div ng-switch-when="text" class="list">
<label class="item item-input"> <!-- style="padding: 0px 0 0px 0px;" -->
<span class="input-label">{{content.label}}</span>
<div ng-switch on="content.tabOrder" style="width:{{content.percentage}}%">
<div ng-switch-when="1">
<input type="text" name="{{content.name}}" placeholder="{{content.toolTip}}" ng-value="{{content.value}}" tabindex="{{content.tabOrder}}" autofocus
ng-model="content.value" ng-blur="onTextBlur(content.name, content.value)">
</div>
<div ng-switch-default>
<input type="text" name="{{content.name}}" placeholder="{{content.toolTip}}" ng-value="{{content.value}}" tabindex="{{content.tabOrder}}"
ng-model="content.value" ng-blur="onTextBlur(content.name, content.value)">
</div>
</div>
</label>
</div>
<div ng-switch-when="combobox" class="list">
<label class="item item-input item-select">
<div class="input-label">
{{content.label}}
</div>
<select name="{{content.name}}" ng-model="content.list" ng-options="option.value as option.name for option in content.params"
ng-change="onListChange(content.name, content.list)">
</select>
</label>
</div>
<div ng-switch-when="listbox">
<ion-scroll style="height: 180px" style="padding-top: 0px">
<label class="item item-radio" ng-repeat="param in content.params" style="height: 35px;font-size: 14px;">
<input type="radio" name="{{content.name}}">
<div class="item-content">
{{param.value}}
</div>
<i class="radio-icon ion-checkmark"></i>
</label>
</ion-scroll>
<!--<select name="{{content.name}}" ng-model="content.list" ng-options="option.value as option.name for option in content.params"-->
<!--ng-change="onListChange(content.name, content.list)" size="7" class="col col-{{content.percentage}}" style="white-space: nowrap;">-->
<!--</select>-->
</div>
</div>
</div>
</div>
<div class="row" ng-show="messageRow">
<div class="col">
<p ng-repeat="message in messageRow.widgets" style="color:red">{{message.value}}</p>
</div>
</div>
</ion-content>
<footer class="bar bar-footer bar-stable" style="height:50px">
<div class="button-bar">
<a class="button" ng-repeat="content in bottomRow.widgets" ng-click="submit(content)" style="padding-top:2px;color:{{content.foreColor}};background: {{content.backColor}}">{{content.value}}</a>
</div>
</footer>
With above code, the <input> box gets the focus on load. However, it loses after a second or two later.
The same <input> without the <ion-scroll> seems to be working fine…