This can happen if the “Don’t create a task” box is ticked. Ticking this box means the component will not create a task automatically. However as the component is an Assignment (Task), it requires a task to be completed.
In Classic, you will need to create a Task for the component.
You should then be able to click on "Mark as Complete" to complete the component.