Datatables editor radio, checkbox not a returnFriendlyNode?

Datatables editor radio, checkbox not a returnFriendlyNode?

chad@mgicchad@mgic Posts: 4Questions: 2Answers: 0

We have a datatables bubble editor. In the pop-up we have a checkbox. When the user hits enter and the checkbox has focus the form does not submit. In version 1.10.7 of dataTables.editor.js on line 3897 the array that checks for returnFriendlyNode does not contain types for 'radio' or 'checkbox'. This seems wrong. Inputs should submit forms. Can this be fixed?

Answers

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    Hi Chad,

    Thanks for pointing this out. You are absolutely correct - the browsers to appear to correctly handle radio and checkbox inputs and the check in Editor for returnFriendlyNode is redundant.

    It should really just be:

    var returnFriendlyNode = name === 'input' || name === 'select';
    

    This change will be in the next release of Editor (1.5) which will be available next month.

    Regards,
    Allan

This discussion has been closed.