fix inputs not blurring when pressing enter

Signed-off-by: Andreas Schmidt <ndrscodes@gmail.com>
This commit is contained in:
Andreas Schmidt authored and GitHub committed 2022-01-14 15:19:29 +01:00
1 parent 0be1ab4ce0
commit 1eef2bca2b
1 file changed
+3
+3
View File
@@ -283,6 +283,9 @@ export class Input extends React.Component<InputProps, State> {
} else {
this.setDirty();
}
//pressing enter indicates that the edit is complete, we can unfocus now
this.blur();
}
}