RSS Feed/News Nestable not coercing value

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,540
Points
823

Reputation:

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

Continue reading...
 
Status
Not open for further replies.
Top