Fix scope MultiSelect toggling 'Todas las obras' checkbox

FormField wrapped slot content in a <label>, so clicks on the project
MultiSelect bubbled to the first control inside (scope_all_projects).
Use a div wrapper for multi-control field groups.

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
This commit is contained in:
Cursor Agent 2026-09-08 19:05:19 +00:00
parent c5f9ac0563
commit 4767676976
No known key found for this signature in database

View file

@ -1,9 +1,10 @@
<template> <template>
<label class="form-field"> <!-- div, not label: a wrapping <label> breaks multi-control fields (e.g. checkbox + MultiSelect). -->
<div class="form-field">
<span class="form-field-label">{{ label }}<span v-if="required" class="required-mark"> *</span></span> <span class="form-field-label">{{ label }}<span v-if="required" class="required-mark"> *</span></span>
<slot /> <slot />
<small v-if="error" class="p-error">{{ error }}</small> <small v-if="error" class="p-error">{{ error }}</small>
</label> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">