Editor v1.2.3: Bug caused by typo when using editor.field().update() on a checkbox

Editor v1.2.3: Bug caused by typo when using editor.field().update() on a checkbox

iCandiiCandi Posts: 2Questions: 0Answers: 0
edited February 2013 in Bug reports
Admittedly, I don't think update is documented for checkbox, but the code is there :-)

Using "update" to change the acceptable values causes the existing selection to be lost.

See dataTables.editor.js line 4124
[code]fieldTypes.checkbox.get( conf, currVal );[/code]

Should read
[code]fieldTypes.checkbox.set( conf, currVal );[/code]

Fixed in my plug-in field and works perfectly.

My next task....a plug-in field for multiple select!

Cheers,
M.

Replies

  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin
    Doh - thanks for flagging that up. `radio` had the same issue. Fixes committed and will be in the next release.

    Allan
  • iCandiiCandi Posts: 2Questions: 0Answers: 0
    Brillo.

    Cheers,
    M.
This discussion has been closed.