Open n-ace-ancog opened 1 month ago
Not as high priority as i thought. I think if you are going to create this like that you need to add the template.
<ids-list-builder height="310px" selectable="single" id="list-builder-1">
<template>
<ids-text font-size="16" type="span">${manufacturerName}</ids-text>
</template>
</ids-list-builder>
We could make a default template or something...But not critical right now
Describe the bug When the list builder is created via
document.createElement
ordocument.insertAdjacentHTML
then added a new item, an uncaught exception is encountered.NOTE creation via template works:
To Reproduce
Steps to reproduce the behavior:
(() => { const list = document.createElement('ids-list-builder'); document.querySelector('ids-container').appendChild(list); })();
document.querySelector('ids-container').insertAdjacentHTML('beforeend', '<ids-list-builder></ids-list-builder>');
Expected behavior A new item is created and no error encountered.
Version
Screenshots