F
Filament2y 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
Any errors in the browser console?
awcodes
awcodes2y 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
JoeOP2y 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
awcodes2y ago
is the custom form being used outside of the admin panel?
Joe
JoeOP2y ago
yes in a liveiwire component
awcodes
awcodes2y ago
also is post.css.config.js a typo? it should be postcss.config.cjs
Joe
JoeOP2y ago
oh yes it's postcss.config.cjs. My bad
awcodes
awcodes2y ago
ok. just never know. 🙂 and you've verified that the css file has been built and is included on the page
Joe
JoeOP2y ago
pardon me, by that you mean recsources/css/app.css ?
awcodes
awcodes2y ago
whatever css file you are using for your app. outside of filament
Joe
JoeOP2y ago
I'm mainly relying on tailwind.css for styling so I'm not using an external css file
awcodes
awcodes2y ago
well there has to be a css file that including the tailwind directives and being built.
Joe
JoeOP2y ago
If you mean the one included in the instructions. yes i managed to set and double check on it
Joe
JoeOP2y ago
im referring to that file
awcodes
awcodes2y ago
please share your vite.config.js, tailwind.config.js.
Joe
JoeOP2y ago
sure, few seconds please
awcodes
awcodes2y ago
no rush
Joe
JoeOP2y ago
vite.config.js.
Joe
JoeOP2y ago
tailwind.config.js
awcodes
awcodes2y ago
and your page has @vite(['resources/css/app.css']) did you run npm run dev and never do a npm run build
Joe
JoeOP2y ago
Joe
JoeOP2y ago
npm run dev
awcodes
awcodes2y ago
that all looks ok to. can you do a npm run build dev will only work while it is running.
Joe
JoeOP2y 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
JoeOP2y ago
Joe
JoeOP2y ago
sorry for taking too long 😥
awcodes
awcodes2y 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
JoeOP2y 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
awcodes2y ago
no worries. just hard to trouble shoot without the whole picture.
Joe
JoeOP2y 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
awcodes2y 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
JoeOP2y ago
I'll try again maybe im missing something

Did you find this page helpful?