Skip to content

Inline components do not respect required flag #1069

@bengustafson84

Description

@bengustafson84

maryUI version

2.8.0

daisyUI version

5.5.19

Livewire version

3.5.18

What browsers are affected?

Microsoft Edge

What happened?

When using inline (floating label mode) with required, the required asterisk (*) is not rendered in the floating label. It only appears in the non-inline label path.

Reproduction

Root Cause

The inline label span in all affected components does not include the required check:

{{-- Current (line ~108 in Input.php) --}}
@if ($label && $inline)
{{ $label }}
@endif
Expected

@if ($label && $inline)

{{ $label }}
@if($attributes->get('required'))
*
@endif

@endif
Affected Components

Input, Textarea, Select, SelectGroup, Password, Choices, ChoicesOffline, DatePicker, DateTime, Tags, Colorpicker — all share the same pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions