Skip to content
Snippets Groups Projects
Commit 67880746 authored by Lukas Mauß's avatar Lukas Mauß Committed by Tom Käsler
Browse files

Fix handling of spaces

parent bd38bb0d
1 merge request!141Resolve "Session ID input field enhancement"
<div fxLayout="column" fxLayoutAlign="center center" fxlayoutgap="50px" fxFill>
<form (ngSubmit)="joinRoom(roomId.value)">
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field class="number">
<input matInput inputmode="numeric" type="number" pattern="[0-9]*" #roomId placeholder="Session-Id" [formControl]="roomFormControl"
[errorStateMatcher]="matcher" max="8"/>
<mat-hint align="end">{{roomId.value.length}} / 8</mat-hint>
<mat-form-field>
<input matInput #roomId type="number" placeholder="Session-Id" [formControl]="roomFormControl"
[errorStateMatcher]="matcher"/>
<mat-hint align="end">{{roomId.value.split(' ').join(' ').length}} / 8</mat-hint>
<mat-error *ngIf="roomFormControl.hasError('required')">{{ 'home-page.please-enter' | translate}}</mat-error>
<mat-error *ngIf="roomFormControl.hasError('minlength')">{{ 'home-page.exactly-8' | translate}}</mat-error>
</mat-form-field>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment