F
Filamentβ€’16mo ago
Joe

select->('multiple') not working in form builder

I'm working on a livewire component and added a form builder to add few select options, however after following the instruction to install filament forms and use the builder none of the filament styling appeared on the project i managed to adjust it temporarily using ('extraInputAttributes')however when i try to use select->('multiple') it shows a non functioning scrollbar
32 Replies
Patrick Boivin
Patrick Boivinβ€’16mo ago
Any errors in the browser console?
awcodes
awcodesβ€’16mo ago
your stylesheet just isn't getting loaded or isn't including the filament styles. You will need to figure that out as it has styling specific to SelectJS which is used for multiple select components.
Joe
JoeOPβ€’16mo ago
@Patrick Boivin @awcodes Thank you for responding and apologies for replying late. I checked and there was none addressing the case i tried to run through the installation process and didn't work.. the only thing I faced during installation is Vite error regarding post.css.config.js which is sorted by changing the code to be
module.exort ={ .. rest of data
module.exort ={ .. rest of data
and the file extension to be .cjs. I'm using filament dashboard in the same project and the styling seems to be working as it should be the issue occurs with a custom form that i'm just using as filters for a custom table
awcodes
awcodesβ€’16mo ago
is the custom form being used outside of the admin panel?
Joe
JoeOPβ€’16mo ago
yes in a liveiwire component
awcodes
awcodesβ€’16mo ago
also is post.css.config.js a typo? it should be postcss.config.cjs
Joe
JoeOPβ€’16mo ago
oh yes it's postcss.config.cjs. My bad
awcodes
awcodesβ€’16mo ago
ok. just never know. πŸ™‚ and you've verified that the css file has been built and is included on the page
Joe
JoeOPβ€’16mo ago
pardon me, by that you mean recsources/css/app.css ?
awcodes
awcodesβ€’16mo ago
whatever css file you are using for your app. outside of filament
Joe
JoeOPβ€’16mo ago
I'm mainly relying on tailwind.css for styling so I'm not using an external css file
awcodes
awcodesβ€’16mo ago
well there has to be a css file that including the tailwind directives and being built.
Joe
JoeOPβ€’16mo ago
If you mean the one included in the instructions. yes i managed to set and double check on it
Joe
JoeOPβ€’16mo ago
im referring to that file
awcodes
awcodesβ€’16mo ago
please share your vite.config.js, tailwind.config.js.
Joe
JoeOPβ€’16mo ago
sure, few seconds please
awcodes
awcodesβ€’16mo ago
no rush
Joe
JoeOPβ€’16mo ago
vite.config.js.
Joe
JoeOPβ€’16mo ago
tailwind.config.js
awcodes
awcodesβ€’16mo ago
and your page has @vite(['resources/css/app.css']) did you run npm run dev and never do a npm run build
Joe
JoeOPβ€’16mo ago
Joe
JoeOPβ€’16mo ago
npm run dev
awcodes
awcodesβ€’16mo ago
that all looks ok to. can you do a npm run build dev will only work while it is running.
Joe
JoeOPβ€’16mo ago
sorry for responding late i had to temporarly hash it to continue working. It will be there in a minute comment it* still the same issue
Joe
JoeOPβ€’16mo ago
Joe
JoeOPβ€’16mo ago
sorry for taking too long πŸ˜₯
awcodes
awcodesβ€’16mo ago
no need to apologize. maybe try deleting node_modules and doing a fresh install based on what you've provided, everything looks ok. do you have a public repo so I can see the whole picture?
Joe
JoeOPβ€’16mo ago
yes, yet the project im working on that has this issue belongs to someone else whom made it private so I wont be able to view it from my end.
awcodes
awcodesβ€’16mo ago
no worries. just hard to trouble shoot without the whole picture.
Joe
JoeOPβ€’16mo ago
I understand, I'll try to create a dummy project to mimic the same case, I'm suspecting it might be an issue within my environment Much thanks for your time and assistance. greatly appreciated πŸ™
awcodes
awcodesβ€’16mo ago
no worries. good luck with it. make sure you didn't miss a step in the docs too. it's easy to skip over stuff some times.
Joe
JoeOPβ€’16mo ago
I'll try again maybe im missing something
Want results from more Discord servers?
Add your server