RichEditor shows up as undefined on View Page but no errors
I might be missing something, but when I create a record with a RichEditor, it shows up as undefined, but the text IS saved in in the database table
Current filament version: v3.0.15
24 Replies
Code:
No errors also means no console errors?
Yea. I’m think the JS is having issues. That field doesn’t look right.
Huh. I didnt see it the fist time, but I do now
I also cleared all the cache, but nothing changed
You ran
php artisan filament:upgrade
?Yep
Can you try replicating on a fresh install? If yes: Please submit an issue
Uhm, ok I will try
I’m not seeing your FileUpload either in that screenshot shot. Is that all of the console errors.?
Yep, everything
I made a fresh install and still had the same issue. I created an issue on guthub !
does it work if you remove the rich editor?
i would think if there was a JS issue in Filament then a lot more people would be asking about it.
What do you mean exactly?
Why remove the RichEditor?
If I remove the RichEditor, then no errors in console:
because all the components have separate js that gets loaded independantly. so, if you remove the Rich Editor from your form and the image editor starts to work, then we know it's something specific to the editor.
So, without it the FileUpload is showing an working?
I dont have the FIleUpload at all in the reproduction repo
Just the RichText
Even if I have JUST the RichEditor, then I still get undefined
I'm talking about the code you provided at the top of this thread
Well there, if I remove the FIleUpload, it still doesnt work
please do this and tell me if the FileUpload is showing and working:
That's all i'm asking
FileUpload has always worked fine
This works
No errors
ok. thank you. from your screen shot earlier the gap made it look like the file upload wasn't showing. sorry.
that's why i was thinking everything was broken.
ohh nono no problem, it just a personal photo I used as a test, that why I didnt include it 😅