1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix inputs not blurring when pressing enter

Signed-off-by: Andreas Schmidt <ndrscodes@gmail.com>
This commit is contained in:
Andreas Schmidt 2022-01-14 15:19:29 +01:00 committed by GitHub
parent 0be1ab4ce0
commit 1eef2bca2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,6 +283,9 @@ export class Input extends React.Component<InputProps, State> {
} else { } else {
this.setDirty(); this.setDirty();
} }
//pressing enter indicates that the edit is complete, we can unfocus now
this.blur();
} }
} }