If the field opacity is set programatically (for example $entity->field_color->opacity = 0.5, the setting of whether to store opacity values is ignored/bypassed.
This can be resolved by cleaning that in ::preSave() as well as the constraints that work under regular field/form usage.

Comments

NickWilde created an issue. See original summary.

NickDickinsonWilde’s picture

Assigned: NickDickinsonWilde » Unassigned
Status: Needs work » Fixed

  • NickWilde committed 89fcd75 on 8.x-2.x
    Issue #2985797 by NickWilde: Opacity storage setting is ignored in some...

Status: Fixed » Closed (fixed)

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