digitalpoint
Well-known member
- Affected version
- 2.3.3
Ran into an issue where XF.Nestable wasn't working as expected if items went to different roots. Did some tracing and the target nestable isn't triggering the change event.
More tracing it and turns out the issue is that this will never work (in nestable.js):
...because
Changing it to this and things started working as expected:
More tracing it and turns out the issue is that this will never work (in nestable.js):
JavaScript:
if (isNewRoot && opt.group !== pointElRoot.dataset.nestableGroup)
...because
typeof(opt.group)
is always number and typeof(pointElRoot.dataset.nestableGroup)
is always string.Changing it to this and things started working as expected:
JavaScript:
if (isNewRoot && opt.group != pointElRoot.dataset.nestableGroup)