【发布时间】:2020-07-11 13:35:54
【问题描述】:
我正在尝试使用一个 div 元素标签,并使其表现得像一个带有 css 的文本区域。
#textarea {
-moz-appearance: textfield-multiline; ------------ card.component.css
-webkit-appearance: textarea;
border: 1px solid gray;
font: medium -moz-fixed;
font: -webkit-small-control;
height: 28px;
overflow: auto;
padding: 2px;
resize: both;
width: 400px;
}
<div id="textarea" contenteditable>I look like a textarea</div> ---- card.component.html
但我在我的卡上使用父组件(类别组件)的 cdkDrag
<div cdkDrag class="col-sm-12 px-2 pb-2">
<app-card (cardEvent)="deleteCard($event)" [card]="card">
我发现此链接contenteditable not working properly with cdkDrag on google-chrome 解释相同,但无法得到任何答案。
【问题讨论】:
标签: contenteditable angular-cdk-drag-drop