Skip to content

Commit dce46b2

Browse files
committed
496: Trigger validation onBlur
1 parent fee7bf3 commit dce46b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/src/pages/UserManagement/Components/Dialog/NewUserDialog.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default function NewUserDialog(props) {
4747
margin="dense"
4848
id="name-input"
4949
label="Name"
50+
onBlur={() => trigger("name")}
5051
variant="standard"
5152
autoFocus
5253
fullWidth
@@ -59,6 +60,7 @@ export default function NewUserDialog(props) {
5960
margin="dense"
6061
id="username-input"
6162
label="Username"
63+
onBlur={() => trigger("username")}
6264
variant="standard"
6365
fullWidth
6466
/>
@@ -70,6 +72,7 @@ export default function NewUserDialog(props) {
7072
margin="dense"
7173
id="role-input"
7274
label="Role - user/editor/admin"
75+
onBlur={() => trigger("role")}
7376
variant="standard"
7477
fullWidth
7578
/>
@@ -81,6 +84,7 @@ export default function NewUserDialog(props) {
8184
margin="dense"
8285
id="password-input"
8386
label="Password"
87+
onBlur={() => trigger("password")}
8488
type="password"
8589
fullWidth
8690
/>
@@ -92,6 +96,7 @@ export default function NewUserDialog(props) {
9296
margin="dense"
9397
id="confirm-password-input"
9498
label="Confirm Password"
99+
onBlur={() => trigger("confirmPassword")}
95100
type="password"
96101
fullWidth
97102
/>

0 commit comments

Comments
 (0)