Skip to content
Snippets Groups Projects
Commit 106d62dc authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add spaces to pattern of session-id input field

parent 357d1baf
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
<form (ngSubmit)="joinRoom(roomId.value)">
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field>
<input matInput #roomId type="text" pattern="[0-9]*" inputmode="numeric" min="00000000" max="99999999"
<input matInput #roomId type="text" pattern="[0-9 ]*" inputmode="numeric" min="00000000" max="99999999"
onkeydown="if(this.value.length - (this.value.split(' ').length -1) === 8 && event.keyCode != 8) return false;
if(this.value.length === 4 && event.keyCode != 8) this.value = this.value + ' ';"
placeholder="Session-Id" [formControl]="roomFormControl" [errorStateMatcher]="matcher"/>
......
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