Div inside template causing mixed positions and duplication. #2313
Unanswered
natecorkish
asked this question in
5. Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I'm not too sure how to explain this, and I am not sure whether it's a Laravel Templating issue, a Livewire issue, or an Alpine issue, but I'll still post the issue here just in case.
I have a tabs template, that shows divs whether it is selected, which works fine, but when I validate a form, and the following code runs:
The outer div, disappears, the
<p>
moves in to another div, and the divs get their positions mixed up. If I change the code about to a span, rather than I div, it works as expected, but when I keep the div, it acts rather oddly.Before validation:
After Validation:
My templating is as follows:
Modal component:
Tab Template:
Then the simple create page where it happens:
The structure is what I want above, but it ends up like the following after validation:
As you can see, the
p
outer div dissapeared, and it moved inside mygeneral
div, and my description div was duplicated and thegeneral
div went inside that... Odd I know.Steps To Reproduce:
I can supply a private repo to anyone who needs.
I have also posted this on Laravel's repo because I am not sure who the issue belongs to . laravel/framework#39468
Beta Was this translation helpful? Give feedback.
All reactions