File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
src/lib/components/common/jschema Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 33
44 export let description = undefined ;
55
6+ let element;
7+
68 onMount (() => {
7- const popoverTriggerList = document .querySelectorAll (' [data-bs-toggle="popover"]' );
8- // eslint-disable-next-line no-undef
9- popoverTriggerList .forEach (popoverEl => new bootstrap.Popover (popoverEl));
9+ if (element) {
10+ // @ts-ignore
11+ // eslint-disable-next-line no-undef
12+ new bootstrap.Popover (element);
13+ }
1014 });
11-
1215 </script >
1316
14- <span class =' ms-2' >
15- {#if description }
16- <a tabindex =' 0' role =' button' data-bs-trigger =' focus' class =' bi bi-info-circle' data-bs-toggle =' popover'
17- data-bs-content ={description }></a >
18- {/if }
19- </span >
17+ <span class =" ms-2 property-description" >
18+ {#if description }
19+ <span
20+ bind:this ={element }
21+ tabindex =" 0"
22+ role =" button"
23+ data-bs-trigger =" focus"
24+ class =" bi bi-info-circle text-primary"
25+ data-bs-toggle =" popover"
26+ data-bs-content ={description }
27+ />
28+ {/if }
29+ </span >
You can’t perform that action at this time.
0 commit comments