Fabien K.
Fabien K.
FFilament
Created by AlexAnder on 3/18/2024 in #❓┊help
Select or Create in attach modal freezes (no scroll)
I had the same modal rendered twice, maybe you have thwo action with the same name ?
4 replies
FFilament
Created by AlexAnder on 3/18/2024 in #❓┊help
Select or Create in attach modal freezes (no scroll)
I have the same problem with some action or modals. There is a style="overflow: hidden; padding-right: 0px;" added on html tag which doesn't go away when closing the modal
4 replies
FFilament
Created by Fabien K. on 10/6/2023 in #❓┊help
getTableRecordUrlUsing - in RelationManager wrong argument.
Nevermind, I got the wrong doc. The old v2 way was working on v3 until an undetermined version The correct way to do this now is here https://filamentphp.com/docs/3.x/tables/advanced#record-urls-clickable-rows
5 replies
FFilament
Created by Fabien K. on 10/6/2023 in #❓┊help
getTableRecordUrlUsing - in RelationManager wrong argument.
Well, just noticed that I looked at 2.0 doc
5 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
yeah, i'll just put seachable+ preload. Thanks for your time
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
hhm not really. But I did try to remove searchable on the filament demo (customer field in the order resource) (don't forget to delete some customers first) and it's not working either. So it seems to be a bug when not searchable
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
well I'm out of ideas. Same version of filament and livewire on the demo and my test project and still not working on my test project. removed all vendors. reinstalled. cleared all caches. republished assets. no luck. When I add ->searchable() it's working.
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
I'll try the demo
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
yes I made my first tests without the hidden field
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
cleared cache, forced asset update, no more idea
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
Yeah it works fine
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
that's my question. why it's not working 😄
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
Another simpler test
php

public function tag(){
return $this->belongsTo(Tag::class);
}
php

public function tag(){
return $this->belongsTo(Tag::class);
}
php
Select::make('tag_id')->relationship('tag','name')
->createOptionForm([
TextInput::make('name'),
Hidden::make('group')->default('product_category'),
])->label('real single relationship'),
php
Select::make('tag_id')->relationship('tag','name')
->createOptionForm([
TextInput::make('name'),
Hidden::make('group')->default('product_category'),
])->label('real single relationship'),
It seems to be a frontend issue, The select field does not reflect the change but the state seems to be ok after creating.
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
Ok so i did another test with a single relationship
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
not a good example then 😄
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
oh yes that can explain why it's not working on the real relationship example
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
It's a morphToMany relationship so no column name
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
It's creating the record. The issue is just the select field not updating with the created record
37 replies
FFilament
Created by Fabien K. on 9/6/2023 in #❓┊help
Select::createOptionUsing not updating selected element in v3
Select::make('tagsCategory')
->relationship('tagsCategory','name')
->createOptionForm([
TextInput::make('name'),
Hidden::make('group')->default('product_category'),
])->label('real relationship')
Select::make('tagsCategory')
->relationship('tagsCategory','name')
->createOptionForm([
TextInput::make('name'),
Hidden::make('group')->default('product_category'),
])->label('real relationship')
Here is the code I used for the real relationship test (like in the doc)
37 replies