SOLVED: Can't use %s in control value twice

I have a custom control with a rather complicated calc function css:

'css' => [
	[
		'property' 	=> 'max-width',
		'value'		=> 'calc((100% - 11 * var(--column-gap, 0px)) * %s / 12 + (%s - 1) * var(--column-gap, 0px))'
	],
]

On frontend it’s displayed fine, the %s are replaced by field value and width calculated correctly.
image

But on editor itself only the first %s is replaced and the second remain which breaks the whole thing.

image

Hi,
Thanks so much for your report!

I was able to reproduce the issue. We’ll fix it in Bricks 1.7.1.

Best regards,
timmse

Hi,
We’ve fixed this bug in Bricks 1.7.1, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse