maca88 / datatables.plugins

MIT License
21 stars 5 forks source link

ColResize forbids inputs in headers #6

Closed marianopeck closed 10 years ago

marianopeck commented 10 years ago

Hi,

If I have a table header with inputs or lists, ColResize doesn't allow me to either type or select from them. Take a look to this example: http://live.datatables.net/IroN/36 Try to enter anything in any of the inputs of the headers.

Any idea?

Thanks in advance,

maca88 commented 10 years ago

Try now :)

marianopeck commented 10 years ago

You rock man! What did you do? How do you solve it? I ask because I am having the exact same problem in DataTable's ColReorder but I don't know how to fix it there as well.

Thanks!!!

maca88 commented 10 years ago

You have a problem with ColReorder because of THIS line. The preventDefault function will prevent the focus on your inputs. If you are going to include the new version of ColResize beside ColReorder the preventDefault function will not be called so your inputs will work as expected :) To solve this, ColResize will remove the ColReoder mousedown event and will manualy call THIS function.

marianopeck commented 10 years ago

Cool! It worked. Indeed, using the last version of ColResize did fix ColReorder too. Thank you very much, I close the issue!