button-selector by name doesn't work in Buttons - fix included

button-selector by name doesn't work in Buttons - fix included

misterTimisterTi Posts: 1Questions: 1Answers: 0
edited September 2015 in Free community support

Buttons v1.0.3 button-selector by name doesn't work. There is a bug in dataTables.buttons.js line 912 that should read:
name: v.conf.name

instead of

name: v.name

Probably the same problem at line 922

Answers

  • pemistahlpemistahl Posts: 1Questions: 0Answers: 0

    I just stumbled over this problem myself and while trying to find a solution I found this thread. misterTi, I can confirm that this is definitely a bug and your proposed code change solves it for me.

    It seems that this bug has not aroused Allan's attention yet. Allan, please fix it. Thanks.

  • duds55duds55 Posts: 1Questions: 0Answers: 0

    +1

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    edited December 2015

    Sorry I missed this at the time. The fix has already been committed and will be in the 1.1.1 release. It is already present in the nightly version.

    Allan

    edit In fact it was @pemistahl who sent the PR with the fix - thanks :-)

This discussion has been closed.