Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

isVar in components not working since last update

Дата публикации: 13-07-2026 13:39:06

Hey @100leiden,
It looks like there’s an issue with Pro but we need to confirm this with our development team. For now, you can possibly bypass this by flattening your parameter keys so that they are not nested inside a "type": "group" block.
Instead of wrapping them under headingPadding with top/bottom sub-params, define them as top-level individual fields. This prevents path nesting (headingPadding.top) and sidesteps the loop variable clash.
Updated Schema Configuration:
{
"headingPaddingTop" : {
"label" : "Heading Padding Top",
"type" : "dimension",
"initial" : "0em",
"isVar" : true,
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"ranges" : {
"px" : { "min" : 0, "max" : 150, "step" : 1 },
"em" : { "min" : 0, "max" : 32, "step" : 1 },
"rem" : { "min" : 0, "max" : 32, "step" : 1 }
}
},
"headingPaddingBottom" : {
"label" : "Heading Padding Bottom",
"type" : "dimension",
"initial" : "0em",
"isVar" : true,
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"ranges" : {
"px" : { "min" : 0, "max" : 150, "step" : 1 },
"em" : { "min" : 0, "max" : 32, "step" : 1 },
"rem" : { "min" : 0, "max" : 32, "step" : 1 }
}
}
}
Then, map them in your Element CSS accordingly:
$el {
padding-top: {{dc:p:headingPaddingTop}};
padding-bottom: {{dc:p:headingPaddingBottom}};
}

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Thread got closed while still waiting for an update0513-07-2026
2isVar in components not working since last update-5311-07-2026
3Parameter display conditions (hide element when empty)0511-07-2026
4CS Forms Date picker width0211-07-2026
5CS Forms Date picker width0511-07-2026
6Background color flashes when base color is a gradient and interaction color is solid0513-07-2026
7Feature request: bulk edit elements2613-07-2026
8Iframe error, can't edit page0712-07-2026
9Iframe error, can't edit page0512-07-2026
10Looper not showing author?0512-07-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 5. Источник: theme.co.