🐛(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
@@ -240,7 +240,7 @@ export default function EditMobility() {
</table>
</div>
))}
<button onClick={handleSave} disabled={isSaving}>
<button type="button" onClick={handleSave} disabled={isSaving}>
{isSaving ? "Saving..." : "Confirm"}
</button>
</section>