Uniphix
Active member
I am using the FieldAdder part of the XenForo.js script. Now when I add a SpinBox into the FieldAdder to clone it will create multiple +/- when it should only create it once, the first +/- works fine but the others which shouldn't be there are appearing.
Now I can hotfix it on my end with no problem, but for me to update I would have to add it everytime.
Find where it says $clone = $source.last().clone(); and either before or after the disable button, clearing values etc. add
Now I can hotfix it on my end with no problem, but for me to update I would have to add it everytime.
Find where it says $clone = $source.last().clone(); and either before or after the disable button, clearing values etc. add
Code:
$clone.find('.spinBoxButton').remove();