Skip to content

Issue with closeModalWithEvents() #325

@michaeljhopkins

Description

@michaeljhopkins

I have this code in a modal

class EditAuthorizedUser extends ModalComponent {
    public function submit() {
        $this->closeModalWithEvents(['authorizedUsersUpdated']);
    }
}

and

class AuthorizedUsers extends Component {
    protected $listeners = ['authorizedUsersUpdated' => '$refresh'];
    public function render() {
        return view('view.file');
    }
}

When I close the modal I only see these events. What am I missing to make this method work?
Screenshot 2023-06-08 at 1 27 02 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions