在ios我不能select一个下拉选项?
In ios I can not select a dropdown option?
我的代码是在 ionic1 中完成的。
我的代码非常适合 android 但对于 ios 我不能 select 我的下拉列表的任何选项,我已经阅读了这样的解决方案:
但这对我不起作用。我可以做什么?这是我的代码:
<div class="form-group mt-4">
<label for="exampleFormControlSelect1">Departamento</label>
<select class="form-control select_custom select_custom_set" ng-model="selectDepartamento" ng-options="item as item.Nombre for item in aDepartamentos | orderBy:'Nombre' track by item.Codigo" ng-change="fn_updateMun(selectDepartamento)" name="selectDepartamento" required>
<option value="" style="display:none;">Seleccione departamento</option>
</select>
</div>
这是我的配置:
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.4.2 "cordova-android-play-
services-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 2.1.0 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.3.6 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova.plugins.diagnostic 4.0.8 "Diagnostic"
我当前的代码:
$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 &&
window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
})
对于新的 cordova-plugin-ionic-keyboard
插件,您似乎需要这样做才能显示键盘选项。
Keyboard.hideFormAccessoryBar(false);
检查此插件的 documentation。
我的代码是在 ionic1 中完成的。 我的代码非常适合 android 但对于 ios 我不能 select 我的下拉列表的任何选项,我已经阅读了这样的解决方案:
但这对我不起作用。我可以做什么?这是我的代码:
<div class="form-group mt-4">
<label for="exampleFormControlSelect1">Departamento</label>
<select class="form-control select_custom select_custom_set" ng-model="selectDepartamento" ng-options="item as item.Nombre for item in aDepartamentos | orderBy:'Nombre' track by item.Codigo" ng-change="fn_updateMun(selectDepartamento)" name="selectDepartamento" required>
<option value="" style="display:none;">Seleccione departamento</option>
</select>
</div>
这是我的配置:
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.4.2 "cordova-android-play-
services-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 2.1.0 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.3.6 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova.plugins.diagnostic 4.0.8 "Diagnostic"
我当前的代码:
$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 &&
window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
})
对于新的 cordova-plugin-ionic-keyboard
插件,您似乎需要这样做才能显示键盘选项。
Keyboard.hideFormAccessoryBar(false);
检查此插件的 documentation。