Commit 41892f4d authored by Wolfgang's avatar Wolfgang

fix(pb-popover): use effect. boolean value for optional parameter persistent

parent d6eb29ce
......@@ -327,16 +327,14 @@ declare function pmf:alternate($config as map(*), $node as node(), $class as xs:
if ($config?parameters?webcomponents) then
let $id := counters:increment($pmf:ALTERNATE_COUNTER_ID)
return
return
<pb-popover class="alternate {$class}" id="altref_{$id}">
{map:for-each($optional, function($key, $value) {
typeswitch($value)
case xs:boolean return
if ($value) then attribute { $key } { $key } else ()
default return
attribute { $key } { $value }
})}
{
if (boolean($optional?persistent)) then
attribute persistent { "persistent" }
else
()
}
<span class="default"> {pmf:apply-children($config, $node, $default)}</span>
<span class="alternate" slot="alternate">{pmf:apply-children($config, $node, $alternate)}</span>
</pb-popover>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment