contenteditable not working properly with cdkDrag on google-chrome

£可爱£侵袭症+ 提交于 2020-04-11 21:14:01

问题


I simply trying to make a div editable. It was working like a charm on chrome before adding Drag-n-drop to my component with cdkDrag directive. However, it works fine with FireFox and Edge and it does show the input cursor.

 <app-note-item  
      *ngFor=" let note of notes"
      cdkDrag
      [note] = "note"
      class="note-item"
      [cdkDragFreeDragPosition] = "note.position"
  ></app-note-item>

App-note-item :


<div contenteditable="true"   class="note-content">

      {{note.content}}
  </div>

Any help would be grateful.

来源:https://stackoverflow.com/questions/56544752/contenteditable-not-working-properly-with-cdkdrag-on-google-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!