Prevent default form submit behavior for open ldap (#14236)

This prevents the default form submit behavior in `ldap.vue`.

 #13954 introduced a change to resolve issues with focus behavior when the async button component entered a disabled state. It turns out that the disabled attributed on the button was preventing the default submit behavior, and changing this reintroduced the default form submit behavior.

The recommended way to submit forms in vue is to utilize `@submit.prevent` to disable the default form submit behavior and define our own submit logic. We want to retain the changes made to async button so that keyboard focus remains consistent.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
Phillip Rak 2025-05-01 15:48:06 -07:00 committed by GitHub
parent cd625ca81a
commit c0686f623e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export default {
</script> </script>
<template> <template>
<form> <form @submit.prevent>
<template v-if="open"> <template v-if="open">
<div class="span-6 offset-3"> <div class="span-6 offset-3">
<div class="mb-20"> <div class="mb-20">