Skip to content

multipleSelectTable 在 select 的 when 条件中只能单选 #30

@trappistes

Description

@trappistes
$form->select('type')
...
->when(10, function (Form\NestedForm $form) {
    $form->selectTable('approvers')
        ->dialogWidth('50%') 
        ->from(UserTable::make(['company_id' => $this->company->id]));
})
->when(20, function (Form\NestedForm $form) {
    $form->multipleSelectTable('approvers')
        ->dialogWidth('50%') 
        ->from(UserTable::make(['company_id' => $this->company->id])); 
})

满足第一个条件时单选没有问题,满足第二个条件时仍然只能单选
调换顺序之后两个都可以多选

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions