Skip to content
Snippets Groups Projects
Commit d3870607 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: form group styles provided by parent components should not cascade

parent 2c013930
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed, inject, useSlots } from 'vue' import { computed, inject, provide, useSlots } from 'vue'
import { useI18n } from '@/i18n' import { useI18n } from '@/i18n'
import { useId } from '@/util' import { useId } from '@/util'
import SaveIndicator from '@/components/generic/SaveIndicator.vue' import SaveIndicator from '@/components/generic/SaveIndicator.vue'
...@@ -113,4 +113,7 @@ const controlAttributes = computed(() => ({ ...@@ -113,4 +113,7 @@ const controlAttributes = computed(() => ({
'aria-describedby': hasErrors.value ? errorsId.value : '', 'aria-describedby': hasErrors.value ? errorsId.value : '',
id: id.value, id: id.value,
})) }))
// don’t cascade formGroupClass to nested FormGroup instances
provide('formGroupClass', undefined)
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment