Ionic select is missing the top confirm part in iOs

So I use the standard code for select like so:

<label class="item item-input item-select" ng-class="{ 'has-error-lr' : postTaskForm.type.$invalid  && postTaskForm.$submitted, 'valid-lr' : postTaskForm.type.$valid  && postTaskForm.$submitted}">
      <div class="input-label"> Video Job Type: </div>
      <select ng-model="postTask.type" name="type" ng-required="true">
        <option>Commercial</option>
        <option>Interview</option>
        <option selected>Training Lesson</option>
        <option>Live Event Recording</option>
      </select> 
    </label>

When render in iOs, it look like this:

As you see the top confirm part is totally missing. What is wrong? How can I get the confirm button in native iOs?

Answers


in your app.js file you should see this piece of code

angular.module('config', [])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
})

try setting cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false); instead of true

so this is final code

angular.module('config', [])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
})

obviously some of your code will be different the important thing is just changing the hideKeyboardAccessoryBar to false.


Need Your Help

Redirect stderr to stdout in a middle of running

windows batch-file command-line stderr io-redirection

The formal way to redirect stderr to stdout in a cmd script is to use the 2&gt;&amp;1 option before running the script:

Select parent element in stylus

html css stylus

I'm using the css preprocessor Stylus and i'm trying to select the first parent of an element.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.