mkocansey / bladewind

BladewindUI is a collection of elegant Laravel blade-based UI components spiced with TailwindCSS and Javascript.
https://bladewindui.com
MIT License
468 stars 42 forks source link

Textarea toolbar not sending through value on form submission #315

Open Britishexchangestudent opened 3 weeks ago

Britishexchangestudent commented 3 weeks ago

In my form i have the textarea with the tooltip active and required as true, the textarea input background color is transparent and doesnt have the required star like the select does and when the form is submitted the value isnt passed through. Once i remove

    @if ($toolbar)
        <div id="{{ $name }}">
            {{ $selected_value }}</div>
    @else

The textarea works as normal without the tooltip of course and the value is sent through when the form is submitted.

Screenshot 2024-08-15 at 13 00 58

Also there are added inputs being submitted with the form submission, is this supposed to be the case?

Screenshot 2024-08-15 at 13 17 43

Above is what happens when i dd the request after submitting the form

Thanks

mkocansey commented 3 weeks ago

@Britishexchangestudent thanks for bringing this up. I will check and fix. ideally other fields should not be submitted with the textarea.

prince-noman commented 1 week ago

@mkocansey This issue needs to be closed I think. 🤔 My PR is already merged in Dev Branch. Just a reminder here.

mkocansey commented 1 week ago

@prince-noman It will automatically be closed when the code is merged into main. The fix will go as part of the 2.7.0 release. I usually merge into main when all features for the release are ready.