From 106d62dcb18f048b7c51cc059a4795c8b842790f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Fri, 8 Mar 2019 17:04:54 +0100 Subject: [PATCH] Add spaces to pattern of session-id input field --- src/app/components/shared/room-join/room-join.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/shared/room-join/room-join.component.html b/src/app/components/shared/room-join/room-join.component.html index b2294fc76..a4ccf5837 100644 --- a/src/app/components/shared/room-join/room-join.component.html +++ b/src/app/components/shared/room-join/room-join.component.html @@ -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"/> -- GitLab