"完成"离子选择按钮消失了。离子3在离子3环境中

时间:2018-02-15 23:59:31

标签: ios ionic-framework plugins keyboard ionic3

我正在使用离子1代码,我的环境现在是离子3.由于某种原因"完成"所有选择按钮都消失了。

以下是选择的屏幕截图,但没有"完成"按钮。曾经有过#"完成"按钮。这是截屏https://imgur.com/a/7FM8Q的问题,它曾经像https://imgur.com/a/zaiXI一样好。

controller.js

  // select options for visitor type
  visitor_types_approval_json = JSON.parse(window.localStorage['visitor_types_approval_json']);
  $scope.visitor_types_items = [];
  for (var i = 0; i < visitor_types_approval_json.visitor_types.length; ++i) {
    $scope.visitor_types_items.push(visitor_types_approval_json.visitor_types[i].typename);
  };

模板html供选择

<label class="item item-input item-select">
    <div class="input-label">
      {{'VISITORS_TYPE_OF_VISITOR'|translate}}
    </div>
    <select ng-model="data.visitorType">
        <option ng-repeat="visitor_types_item in visitor_types_items" value="{{visitor_types_item}}">{{visitor_types_item}}</option>
    </select>
  </label>

<br>

config.xml中

<plugin name="com.moust.cordova.videoplayer" spec="https://github.com/moust/cordova-plugin-videoplayer" />
<plugin name="cordova-plugin-app-version" spec="https://github.com/whiteoctober/cordova-plugin-app-version.git" />
<plugin name="cordova-plugin-file-transfer" spec="~1.5.0" />
<plugin name="cordova-plugin-image-picker" spec="https://github.com/mirulumam/cordova-imagePicker" />
<plugin name="cordova-plugin-splashscreen" spec="~3.1.0" />
<plugin name="cordova-plugin-whitelist" spec="~1.2.1" />
<plugin name="onesignal-cordova-plugin" spec="~1.12.5" />
<plugin name="cordova-plugin-camera" spec="^2.4.1">
    <variable name="CAMERA_USAGE_DESCRIPTION" value=" " />
    <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value=" " />
</plugin>
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.2" />
<plugin name="cordova-plugin-actionsheet" spec="^2.3.3" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="cordova-plugin-network-information" spec="^1.3.4" />
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<engine name="ios" spec="4.5.4" />

我的环境

ionic version 3.19.1
cordova version 8.0.0
npm version 5.6.0
macos High Sierra 10.13.1
xcode 9.2

我很好奇,是否与我的键盘插件有关?需要完成&#34;完成&#34;按钮返回选择。感谢。

0 个答案:

没有答案