4

我有一个简单的项目列表,我想使用拖放重新排序。我正在使用 Dragula 来做到这一点。

当我使用 Chrome 时一切都很好,但是当我在 IE11 中测试它时,当我在文本字段上拖动时,我的光标闪烁。有人可以解释我为什么以及如何避免这种情况吗?

这是片段:

dragula([document.querySelector('.draggable-container')]);
.gu-mirror {
  position: fixed !important;
  margin: 0 !important;
  z-index: 9999 !important;
  opacity: 0.8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  filter: alpha(opacity=80);
}
.gu-hide {
  display: none !important;
}
.gu-unselectable {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}
.gu-transit {
  opacity: 0.2;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
  filter: alpha(opacity=20);
}
li {
  list-style: none;
}
.draggable-item {
  background-color: #eee;
  margin: 3px 0;
}
input {
  margin: 5px;
  width: 500px;
}
.handle {
  cursor: move;
  padding: 5px;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/dragula/3.6.8/dragula.min.js"></script>
<ul class='draggable-container'>
  <li class="draggable-item">
    <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
  <li class="draggable-item">
      <span class="handle">&#x2195;<span><input type="text">
  </li>
</ul>

4

0 回答 0