We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48a1bd commit c0ed449Copy full SHA for c0ed449
src/views/example/table/dragTable.vue
@@ -110,6 +110,11 @@ export default {
110
const el = document.querySelectorAll('.el-table__body-wrapper > table > tbody')[0]
111
this.sortable = Sortable.create(el, {
112
ghostClass: 'sortable-ghost', // Class name for the drop placeholder,
113
+ setData: function(dataTransfer) {
114
+ dataTransfer.setData('Text', '')
115
+ // to avoid Firefox bug
116
+ // Detail see : https://github.com/RubaXa/Sortable/issues/1012
117
+ },
118
onEnd: evt => {
119
const targetRow = this.list.splice(evt.oldIndex, 1)[0]
120
this.list.splice(evt.newIndex, 0, targetRow)
0 commit comments