Skip to content

[LiveComponent] delete component from DOM #2007

Open
@tito10047

Description

Hi, I want delete component on ajax and remove element from DOM.
It is possible?

Some like this:

   #[LiveAction]
   public function delete(
   ) {
   	$repo  = $this->repositpry->delete($this->item);
   	$this->item = null;
   	return new Response(null, 204);
   }

But when I do this, black backdrop is showing.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions