console error - pressing enter key on submit button

console error - pressing enter key on submit button

vipsoftvipsoft Posts: 10Questions: 1Answers: 0
edited April 2017 in Free community support

The following console error is logged when you press the "enter" key when the "Add" button has focus.

dataTables.editor.min.js:formatted:1694 Uncaught TypeError: Cannot read property 'canReturnSubmit' of null
    at HTMLDocument.<anonymous> (dataTables.editor.min.js:formatted:1694)
    at HTMLDocument.dispatch (jquery-2.2.4.min.js:3)
    at HTMLDocument.r.handle (jquery-2.2.4.min.js:3)

Code:

$('a.editor_create').on('click', function (e) {
    e.preventDefault();

    editor.create({
        title: 'Create new record',
        buttons: 'Add'
    });
});

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,356Questions: 1Answers: 10,447 Site admin
    Answer ✓

    Hi,

    Thanks for noting this. Its a bug in the current 1.6.1 release I'm afraid. It has been fixed for 1.6.2 already and I'm just making the final changes for 1.6.2. It should be released this week.

    Regards,
    Allan

This discussion has been closed.