Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229591

Ion-input/textarea within an ion-slide doesnt work

$
0
0

Hi,
Thats my html-code:

<ion-slides #mySlider initialSlide={{this.page}} (ionSlideDidChange)="slideChanged()">

    <ion-slide *ngFor="let a of applications; let i = index">
      <ion-list no-lines>
        <ion-item>
          <ion-label color="darkest" stacked style="font-size: 1.6rem;" class="line-break">Bereich</ion-label>
          <ion-select class="custom" [(ngModel)]="a.jobgroup" [selectOptions]="selectOptionsJobgroup" (ionChange)="onJobgroupChange($event, i)" disabled>
            <ion-option *ngFor="let group_order of groups_order" value="{{job_groups[group_order].id}}">{{job_groups[group_order].name}}</ion-option>
          </ion-select>
        </ion-item>
        <ion-item *ngIf="a.jobgroup">
          <ion-label color="darkest" stacked style="font-size: 1.6rem;" class="line-break">Job</ion-label>
          <ion-select class="custom" text-wrap [(ngModel)]="a.job" [selectOptions]="selectOptionsJobs" disabled>
              <ion-option *ngFor="let job_id of jobs[i]" value="{{job_id}}">{{job_names[job_id].name}}</ion-option>
            </ion-select>
        </ion-item>
        <ion-item>
          <ion-label color="darkest" stacked style="font-size: 1.6rem;" class="line-break">Beschreibung</ion-label>
          <ion-textarea [(ngModel)]="a.description" type="text" rows="5" (ngModelChange)='somethingChanged(i)'></ion-textarea>
        </ion-item>
        <ion-item>
          <button ion-button full large color="an_base" (click)="saveApplication(i)" [disabled]="!changes[i]">xxx</button>
        </ion-item>
      </ion-list>
    </ion-slide>


  </ion-slides>

But i tested it with a plain project and even there the error occurs, if i use a input field within an ion-slide.
I can prevent the error, when i wrap the content of the single slides within a ion-content, but that doesnt feel right...


Viewing all articles
Browse latest Browse all 229591

Trending Articles