disableOptionsWhenSelectedInSiblingRepeaterItems fails with multi-select

I have a repeater with a multi-select field, I don't want the same answers to be inputted in different repeater rows. But the method ->disableOptionsWhenSelectedInSiblingRepeaterItems() doesn't seem to work with multi-select. If I remove ->multiple() it works as it should. Am I doing something wrong?
Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([ TextInput::make('question')
->label(__('Question')), Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this-> flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable() ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),
Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([ TextInput::make('question')
->label(__('Question')), Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this-> flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable() ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server