Skip to content

Commit

Permalink
Ajusta o comportamento do frontend para evitar falhas em campos multi…
Browse files Browse the repository at this point in the history
…select quando nenhum item está selecionado
  • Loading branch information
erleibiazzio committed Jan 3, 2025
1 parent 56052fc commit bd3893d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Entities/components/entity-field/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</div>

<label class="input__label input__checkboxLabel input__multiselect" v-for="optionValue in description.optionsOrder">
<input :checked="value?.includes(optionValue)" type="checkbox" :value="optionValue" @change="change($event)" :disabled="readonly || disabled || (maxOptions && value?.length >= maxOptions && !value.includes(optionValue))" /> {{description.options[optionValue]}}
<input :checked="value?.length > 0 && value?.includes(optionValue)" type="checkbox" :value="optionValue" @change="change($event)" :disabled="readonly || disabled || (maxOptions && value?.length >= maxOptions && !value?.includes(optionValue))" /> {{description.options[optionValue]}}
</label>
</template>
</div>
Expand Down

0 comments on commit bd3893d

Please sign in to comment.