Cell back with original innerHTML after update

Cell back with original innerHTML after update

Swish15Swish15 Posts: 1Questions: 0Answers: 0
edited January 2022 in Editor

Hello everyone,

I'm using a colorpicker in my datatable, with this plugin, where I follow every step given : https://datatables.net/forums/discussion/comment/99979/#Comment_99979

The colorpicker is displayed in a render cell. When I change the color, the cell is updated. But when I clicked elsewhere, the displayed color changes back to the original one but the value of the cell is the new one.

This is what I do to edit the cell :
cell.data( color.toHexString() ); table.draw(false);

Thank you for your help.

Replies

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.