UI glitch/issue with a Page (Livewire component)
So, I made a filament page and I added a form with a file upload. This creates some weird UI glitches; the navigation dropdown is gone and the profile dropdown is opened and reversed. Is this because of me or a bug?
I read the doc according to:
https://filamentphp.com/docs/2.x/forms/layout
https://filamentphp.com/docs/2.x/forms/fields
Solution:Jump to solution
Remove the body tags in your blade file. You’re confusing the browser. They are already part of the page component.
26 Replies
Solution
Remove the body tags in your blade file. You’re confusing the browser. They are already part of the page component.
Thank you
Is it possible o have filament components inside the blade file?
technically, yes, but I wouldn't recommend them for form / table components since they usually have added functionality tied to them.
Alright. One last question. I see there is <x-filament::page>, <x-filament::card>, are there more? How does this work exactly?
yea, there's plenty, it's on the road map to get them documented for v3, so for now you'd have to dive into the source code in vendor/filament
you can look and the panels code to see how a lot of them are being used
Perfect. I will have a look at them. Would like to help documenting them if thats possible
thanks, i'll keep that in mind.
and pass it up the chain when the time comes.
Could you please guide be where about? There are a lot of files and folders to look into
filament/filament, that's the right one. Panels get's renamed to filament through composer.
they are spread throughout all of those, though.
I think I got the hang of how it works, but I think its incomplete. I get this error:
Just writing the component is obviously not enough. Can you give any hints as to what needs to happen next?
Like I said some views require extra functionality or attributes to make them work.
sorry for the tag, but can you shed some light please? @danharrin
Ive looked through the source code, but couldnt find anything helpful
v2 or v3
v3
actually i see its v3, this is a beta period and things arent stable yet, please open an issue and i will look into it. no time to read the entire thread
try reproducing the issue in a new app and you'll probably work out the cause
I will try it in v2 now
Im doing it in a new app
it just has filament beta 17
I created a discussion instead of an issue, as this feels more of a question than a bug/issue.
I think the problem is that you’re trying to use a file upload component without it being tied to any form state. Several components, especially form fields require attributes passed in from the form to work properly. That’s what I was trying to get at earlier.
Ahh, oke. This is much more informative. Thank you
Are you available to have a look at the discussion? Its getting a bit lost in the list
https://github.com/filamentphp/filament/discussions/7255
GitHub
Undefined variable $getFieldWrapperView · filamentphp filament · Di...
Filament version: v3.0.0-beta17 Laravel version: 10.16.1 PHP version: 8.2.8 Both in Filament v2 and v3, whenever I create a form component in a blade file, I get this error: Undefined variable $get...
I still havent quite figured out which attributes I need to pass, of if Im even passing them correctly
You cannot instantiate form components as blade components
you must use the form builder properly with classes and a livewire component
Do you know which components can be instantiated from blade? For example filament::card works. Only UI elements? Or does it just depend what I need to do?
check components in support/resources/components
we will document the ones you can use soon
Perfect. Will have a look
Yeah, I wanted to learn how they work so I could help with the documentation 😅