diff --git a/spring-boot-admin-server-ui/src/main/frontend/components/sba-button.vue b/spring-boot-admin-server-ui/src/main/frontend/components/sba-button.vue index 3594e657b3d..f9de276dd45 100644 --- a/spring-boot-admin-server-ui/src/main/frontend/components/sba-button.vue +++ b/spring-boot-admin-server-ui/src/main/frontend/components/sba-button.vue @@ -26,6 +26,13 @@ const props = defineProps({ type: String, default: null, }, + type: { + type: String, + default: 'button', + validator(value) { + return ['button', 'submit', 'reset'].includes(value); + }, + }, size: { type: String, default: 'sm', @@ -73,7 +80,7 @@ const componentAttrs = computed(() => { return { ...common, disabled: props.disabled === true, - type: 'button', + type: props.type, }; } return common; diff --git a/spring-boot-admin-server-ui/src/main/frontend/login/login.vue b/spring-boot-admin-server-ui/src/main/frontend/login/login.vue index 97f70661cea..52bf38b6be6 100644 --- a/spring-boot-admin-server-ui/src/main/frontend/login/login.vue +++ b/spring-boot-admin-server-ui/src/main/frontend/login/login.vue @@ -44,7 +44,7 @@