mirror of
https://github.com/tabler/tabler.git
synced 2026-08-30 13:51:28 +04:00
Mark demo HTML sections with BEGIN/END comments (#2741)
This commit is contained in:
@@ -124,6 +124,8 @@ const selectId = id ? `select-${id}` : undefined;
|
||||
}
|
||||
{
|
||||
id && (
|
||||
<Fragment>
|
||||
<Fragment set:html={'<!-- BEGIN SELECT -->'} />
|
||||
<script define:vars={{ selectId, showSearch }}>
|
||||
function initSelect() {
|
||||
window.tabler_select ??= {};
|
||||
@@ -149,5 +151,7 @@ const selectId = id ? `select-${id}` : undefined;
|
||||
|
||||
document.readyState !== 'loading' ? initSelect() : document.addEventListener('DOMContentLoaded', initSelect, { once: true });
|
||||
</script>
|
||||
<Fragment set:html={'<!-- END SELECT -->'} />
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user