Disappearing Elements

The element on the page disappears when you click on the component.

Try clicking on the shapes present.

Javascript