Skip to content

Commit

Permalink
Fix an issue with links inside of a item list in a dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Aug 25, 2022
1 parent 5e01020 commit 9167591
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ul.g-item-list.li-item-list
for column in itemList.columns
-
var divtype = column.type !== 'record' || column.value !== 'controls' ? 'a' : 'span';
var classes = [];
var classes = divtype == 'a' ? ['g-item-list-link']: [];
if (('' + column.type + column.value).match(/^[a-zA-Z][a-zA-Z0-9-_]*$/)) classes.push(`li-column-${column.type}-${column.value}`);
if (('' + column.type).match(/^[a-zA-Z][a-zA-Z0-9-_]*$/)) classes.push(`li-column-${column.type}`);
#{divtype}.li-item-list-cell(class=classes.join(' '), g-item-cid=item.cid, href=`#item/${item.id}`)
Expand Down

0 comments on commit 9167591

Please sign in to comment.