ionic framework - Ion-slides with form inputs blocks page scrolling -
i have few form inputs inside <ion-slide >
can not scroll view fields in slide, prevents me scrolling inside slide. on device, when there ion-input, ion-list scrolling behaviour not work.
there css issue labels overlapping (see img below)... using ionic v 1.3.
<ion-view scroll="true"> <ion-nav-bar class="bar-light"> <ion-nav-buttons side="left"> <button class="button button-positive button-clear no-animation" ng-click="startapp()" ng-show="!slideindex"> skip </button> <button class="button button-positive button-clear no-animation" ng-click="previous()" ng-show="slideindex > 0"> previous </button> </ion-nav-buttons> <ion-nav-buttons side="right"> <button class="button button-positive button-clear no-animation" ng-click="next()" ng-show="slideindex != 2"> next </button> <button class="button button-positive button-clear no-animation" ng-click="startapp()" ng-show="slideindex == 2"> finish </button> </ion-nav-buttons> </ion-nav-bar> <ion-slide-box on-slide-changed="slidechanged(index)" scroll="true"> <ion-slide scroll="true"> <h3>start </h3> <div class="list"> <label class="item item-input item-stacked-label"> <span class="input-label">first name</span> <input type="text" placeholder="john"> </label> <label class="item item-input item-stacked-label"> <span class="input-label">last name</span> <input type="text" placeholder="suhr"> </label> <label class="item item-input item-stacked-label"> <span class="input-label">email</span> <input type="text" placeholder="john@suhr.com"> </label> <label class="item item-input item-stacked-label"> <span class="input-label">email (use gym email)</span> <input type="text" placeholder="john@suhr.com"> </label> <label class="item item-input item-select"> <div class="input-label"> select gym location </div> <select> <option>fitnfast kellyville</option> </select> </label> </div> </ion-slide> <ion-slide> <h3>using awesome</h3> <div id="list"> <h5>just 3 steps:</h5> <ol> <li>be awesome</li> <li>stay awesome</li> <li>there no step 3</li> </ol> </div> </ion-slide> <ion-slide> <h3>any questions?</h3> <p> bad! </p> </ion-slide> </ion-slide-box> </ion-view>
i had same issue , found on ionic forums solution using ion-content inside of ion-slide , it's working me now.
https://github.com/driftyco/ionic/issues/5297
<ion-view> <ion-content scroll="false"> <ion-slide-box> <ion-slide> <ion-content> <div class="box blue"><h1>blue</h1></div> </ion-content> </ion-slide> <ion-slide> <ion-content> <div class="box yellow"><h1>yellow</h1></div> </ion-content> </ion-slide> <ion-slide> <ion-content> <div class="box pink"><h1>pink</h1></div> </ion-content> </ion-slide> </ion-slide-box> </ion-content> </ion-view>
Comments
Post a Comment