FIX exit on focus from some inputs
All checks were successful
Deploy React / build-and-deploy (push) Successful in 16s

This commit is contained in:
2026-03-05 09:45:27 +01:00
parent 6ca3120c9e
commit 552b2a8561
6 changed files with 73 additions and 32 deletions

View File

@@ -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>
)}