I am facing an issue with my editable container where I have a div inside it. Whenever I press enter, the div duplicates, resulting in two divs stacked on top of each other. The container has contenteditable set to true, which might be causing this problem. Is there any way to prevent this from happening?
<div class="singlediv"></div>
Here is the CSS code:
.singlediv {
border-color: rgb(155, 196, 243);
border: dotted 1px;
width: 100%;
padding: 10px;
min-height: 75px;
}