Nestable not coercing value

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):
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...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ