🐛(components): add missing button types and keys
Check Deno code / Check Deno code (pull_request) Successful in 40s

Add type="button" to the EditMobility and UploadStudents buttons
to prevent default form submission behavior.
Include a key prop on Student components in Promotion for stable list rendering.
This commit is contained in:
2026-01-09 12:41:51 +01:00
parent 91f7b6c022
commit 58c8ff56ba
3 changed files with 3 additions and 3 deletions
@@ -104,7 +104,7 @@ export default function UploadStudents() {
return (
<>
<input type="file" accept=".xlsx, .xls" onChange={handleFileChange} />
<button onClick={confirmUpload}>Confirm Upload</button>
<button type="button" onClick={confirmUpload}>Confirm Upload</button>
<p>{statusMessage.value}</p>
</>
);