mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 16:13:17 +00:00
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:
parent
c5f9ac0563
commit
4767676976
1 changed files with 3 additions and 2 deletions
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue