Problem/Motivation

FortyTwo appears broken and not compatible with Drupal 10 as it uses Underscore JS. This will result in the following error if you use placeholders;
placeholder.js?v=1.x:28 Uncaught ReferenceError: _ is not defined
at Object.show (placeholder.js?v=1.x:28:9)
at Object.render (placeholder.js?v=1.x:22:14)
at Object.init (placeholder.js?v=1.x:14:14)
at new Placeholder (placeholder.js?v=1.x:68:10)
at HTMLInputElement. (placeholder.js?v=1.x:73:41)
at Function.each (jquery.min.js?v=3.7.0:2:3129)
at ce.fn.init.each (jquery.min.js?v=3.7.0:2:1594)
at placeholder.js?v=1.x:73:22
at placeholder.js?v=1.x:77:3
show @ placeholder.js?v=1.x:28
render @ placeholder.js?v=1.x:22
init @ placeholder.js?v=1.x:14
Placeholder @ placeholder.js?v=1.x:68
(anonymous) @ placeholder.js?v=1.x:73
each @ jquery.min.js?v=3.7.0:2
each @ jquery.min.js?v=3.7.0:2
(anonymous) @ placeholder.js?v=1.x:73
(anonymous) @ placeholder.js?v=1.x:77

CommentFileSizeAuthor
#2 replace-underscore-js.patch658 bytesrik wijnen

Comments

Rik Wijnen created an issue. See original summary.

rik wijnen’s picture

StatusFileSize
new658 bytes

This patch file should fix it.

batigolix’s picture

Issue tags: +finalist-sprint

fabianderijk’s picture

Status: Active » Fixed

Thanks, I've applied the patch and created a new 5.0.2 release

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.