Bug in AutoFill and KeyTable together: Use autofill for a just edited field does not work

Bug in AutoFill and KeyTable together: Use autofill for a just edited field does not work

sroesnersroesner Posts: 7Questions: 3Answers: 0

Hi,

I just tried all the examples for editor and I've found a bug on your example page https://editor.datatables.net/examples/extensions/excel.html

1) When I click into a cell, enter new content and want to drag the just entered text without pressing return before, it reverts my edit and doesn't fill the other cells.
2) Also, I can't select other cells afterwards until I reload the page.

This question has an accepted answers - jump to answer

Answers

  • sroesnersroesner Posts: 7Questions: 3Answers: 0

    I tried workarounding with

    $('#example').on("preAutoFill.dt", function(e, datatable, cells){
      datatable.editor().submit();
    })
    
    

    but that doesn't work either - then it POSTs only the initial edit, not the prefilled cells.

    Also it behaves the same with inline editing activated.

  • allanallan Posts: 63,457Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Hi,

    Thanks for posting this. You are correct - at the moment AutoFill requires the Editor content to be submitted before you can then click and drag it. That is an interaction I need to fix. AutoFill will need to have some code added to it to wait for the Editor action to finish.

    Regards,
    Allan

This discussion has been closed.