# Elements are not being added to the canvas

**URL:** <https://forum.bpmn.io/t/elements-are-not-being-added-to-the-canvas/4811>\
**Category:** Misc\
**Created:** [June 4, 2020, 4:32pm UTC](https://forum.bpmn.io/t/elements-are-not-being-added-to-the-canvas/4811 "2020-06-04T16:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magebol](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@magebol](https://forum.bpmn.io/u/magebol)\
**Post date:** [June 4, 2020, 4:32pm UTC](https://forum.bpmn.io/t/elements-are-not-being-added-to-the-canvas/4811/1 "2020-06-04T16:32:19Z")

</div>

Hi,  
I am new on [bpmn.io](http://bpmn.io)  
I will appreciate your help.

I implemented the library following the default modeler example. I am still doing some tests. I noticed that when I try to add a new element the canvas becomes red and **the element is not added**. In the image below the element disappears after I click off the canvas :

Is there any missing paramater I should be aware of?

![Screen Shot 2020-06-04 at 11.27.12 AM](https://forum.bpmn.io/uploads/default/original/2X/d/d37648c3181adcd7f4f30203df594995730382db.png)

CSS  
html, body, #container\_1 {  
height: 800px;  
padding: 0;  
margin: 0;  
}

```
  .diagram-note {
    background-color: rgba(66, 180, 21, 0.7);
    color: White;
    border-radius: 5px;
    font-family: Arial;
    font-size: 12px;
    padding: 5px;
    min-height: 16px;
    width: 50px;
    text-align: center;
  }

  .needs-discussion:not(.djs-connection) .djs-visual > :nth-child(1) {
    stroke: rgba(66, 180, 21, 0.7) !important; /* color elements as red */
  }

  #save-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
  }
```

---

<div class="post-metadata">

**Author:** ![oguzeroglu](https://forum.bpmn.io/user_avatar/forum.bpmn.io/oguzeroglu/32/1513_2.png) [@oguzeroglu](https://forum.bpmn.io/u/oguzeroglu)\
**Post date:** [June 5, 2020, 5:13am UTC](https://forum.bpmn.io/t/elements-are-not-being-added-to-the-canvas/4811/2 "2020-06-05T05:13:18Z")

</div>

Hey,

Here’s a working example: [https://codesandbox.io/s/bpmn-js-sandbox-3zkw0](https://codesandbox.io/s/bpmn-js-sandbox-3zkw0)

You can compare your code with this reference code.

If you have any customisations, please put them on this Sandbox and let us know so that we can help you.

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [July 22, 2025, 3:42pm UTC](https://forum.bpmn.io/t/elements-are-not-being-added-to-the-canvas/4811/3 "2025-07-22T15:42:35Z")

</div>

Closed on July 22, 2025, 3:42pm UTC


