पर कीपैड के ऊपर बटन रखें, मुझे खोले जाने पर कीपैड के ऊपर रहने के लिए इस पृष्ठ के निचले हिस्से में "ठीक" बटन चाहिए। यह एंड्रॉइड पर काम करता है जैसा कि आप बाईं ओर स्क्रीनशॉट में देख सकते हैं, लेकिन आईओएस (दाईं ओर स्क्रीनशॉट) में नहीं।आयनिक, आईओएस
क्या आप कृपया कोड के साथ मेरी मदद कर सकते हैं?
इसके अलावा, जैसा कि आप "चयन-पर-फोकस" निर्देश देख सकते हैं, आईओएस में काम नहीं करता है ... और कीपैड को आईओएस पर न्यूमेरिक कीपैड (फोन पैड) होना चाहिए ... और ऐसा नहीं है।
<div class="wrapperFlex withNextButton">
<div class="itemTitle">
<div class="text">
{{'paramQuestions.weight' | translate }}
</div>
</div>
<div id="weightdata" class="itemParameters weightdataclass row">
<input class="weightinput" type="number" name="userweight" ng-min="{{data.minWeight}}" ng-max="{{data.maxWeight}}" ng-model="data.realWeight" ng-change="updateViewGenVol(data.weightunit, data.userweight, data.BLfactorValue);saveUserWeight()" select-on-focus required></input>
<div class="weightunitradios">
<ion-checkbox class="checkboxes checkbox-blueboardline" ng-model="data.weightunit" ng-true-value="'kg'" ng-false-value="'lbs'" ng-change="saveWeightUnit(); changeMinMax(); convertWeightInput(); saveUserWeight();">kg</ion-checkbox>
<ion-checkbox class="checkboxes checkbox-blueboardline" ng-model="data.weightunit" ng-true-value="'lbs'" ng-false-value="'kg'" ng-change="saveWeightUnit(); changeMinMax(); convertWeightInput(); saveUserWeight();">lbs</ion-checkbox>
</div>
</div>
</div>
directives.js:
https://youtu.be/_bOWGMGesgkकोड यह रहा:;
3 मुद्दों तो)
यहाँ एक वीडियो है
.directive('selectOnFocus', function ($timeout) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var focusedElement = null;
element.on('focus', function() {
var self = this;
if (focusedElement != self) {
focusedElement = self;
$timeout(function() {
self.select();
}, 10);
}
});
element.on('blur', function() {
focusedElement = null;
});
}
}
})
फोन कुंजीपटल पाने के लिए आपको इस के लिए – nicfo
ठीक धन्यवाद का उपयोग करने के लिए है। क्या आपको अन्य समस्याओं पर कोई विचार है? – Louis
शायद [इस निर्देश] (http://stackoverflow.com/a/14996261/5635057) को आजमाएं, ऐसा लगता है कि यह ठीक है – nicfo