Skip to content

Date Time's append and prepend slots render on separate lines. #1025

@dletsche

Description

@dletsche

maryUI version

2.4.9

daisyUI version

5.4.7

Livewire version

3.7.0

What browsers are affected?

Firefox, Chrome

What happened?

This code...

<x-datetime label="Append a button">
    <x-slot:append>
        <x-button label="I am a button" class="join-item btn-primary" />
    </x-slot:append>
</x-datetime>

... displays like...

Image

I think the issue has to do with line 73 of DateTime.php: <div class="w-full">.

Changing that to <div @class(["w-full", "join" => $prepend || $append])> (similar to line 111 of Input.php), seems to fix the issue...

Image

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