mirror of https://github.com/rancher/dashboard.git
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:
parent
cd625ca81a
commit
c0686f623e
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue