On their official website popper.js claims that it will handle arrows automatically for you. https://popper.js.org/#arrows
However when I tried some basic html content, the arrow doesn't show:
<div id="popover-trigger"></div>
<div id="popover-container">
<span class="arrow"></span>
</div>
<script type="text/javascript">
const popper = new Popper(popper_trigger, popper_content, {
"placement": "top",
"modifiers": {
"arrow": {
element: '.arrow'
},
"offset": {
enabled: true,
offset: '0,10'
}
},
"onCreate": function(data){
console.log(data);
}
});
</script>
I searched online, and found very little mentioning to this feature. Some involves manually adding css styles: enter link description here, while I thought this feature should come out of box.
I also used developer's tool to examine the generated html structure, and found nothing arrow related element there.
Am I missing something here?