Select::createOptionUsing not updating selected element in v3

I can't make it work. I'm using v3.0.39

Here is an dummy example

Select::make('test')
->options(function(){
    return Tag::pluck('name','id');
})
->createOptionForm([TextInput::make('name')])
->createOptionUsing(function($data){
    $tag = new Tag();
    $tag->fill($data);
    $tag->save();
    return $tag->getKey();
})

The record is created but the select doesn't reflect the change.

Thanks in advance
Was this page helpful?