FIX exit on focus from some inputs
All checks were successful
Deploy React / build-and-deploy (push) Successful in 16s
All checks were successful
Deploy React / build-and-deploy (push) Successful in 16s
This commit is contained in:
@@ -34,6 +34,10 @@ function RoomCard({ number, status ,id}) {
|
||||
setEdtiting(false);
|
||||
}
|
||||
|
||||
function closeInput(){
|
||||
setEdtiting(false);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
<h3>Room {number}</h3>
|
||||
@@ -51,6 +55,7 @@ function RoomCard({ number, status ,id}) {
|
||||
autoFocus
|
||||
onChange={e => SetValue(e.target.value)}
|
||||
onKeyDown={e => e.key === "Enter" && submit()}
|
||||
onBlur={closeInput}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user