mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: don't allow blank space in collab name (#6211)
* don't allow blank space in collab name * add spec * prevent blank
This commit is contained in:
parent
8c1168ef33
commit
c9d18ecab6
3 changed files with 7 additions and 2 deletions
|
@ -144,7 +144,7 @@ const RoomDialog = ({
|
|||
<input
|
||||
type="text"
|
||||
id="username"
|
||||
value={username || ""}
|
||||
value={username.trim() || ""}
|
||||
className="RoomDialog-username TextInput"
|
||||
onChange={(event) => onUsernameChange(event.target.value)}
|
||||
onKeyPress={(event) => event.key === "Enter" && handleClose()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue