If field_score_bar_end_color is empty (optional field), the color transition script throws an error (""progressbar.js" can't access property "forEach", g is null".

So we need to ensure this thing has a fallback value, maybe:

to: {
              color: scoreBarEndColor.length ? scoreBarEndColor : scoreBarColor,
              width: scoreStrokeWidth
            },
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thomas.frobieter created an issue. See original summary.

  • thomas.frobieter committed 9d7cc04 on 4.x
    Issue #3261592: Type Score: Breaks if no scoreBarEndColor is set by the...
thomas.frobieter’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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