I have a div with a contenteditable="true" property in a component.
subcomponent html:
<div class="text" contenteditable="true" >
</div>
. Main component html:
<html>
<body>
<app-subcomponent
[someValue]="someValue">
</app-subcomponent>
</body>
</html>
It does result in the standard blue outline as expected but it is not editable. However if I would add the div with the contenteditable property inside the main component it works fine.
Why is this the case and how can I solve it? I can use the input and textarea elements (and they work) but I would prefer the div editable method because it would be a more elegant solution in this case.