question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve arrow modifier docs

See original GitHub issue

CodePen demo

https://codepen.io/anon/pen/BJpmjz

Steps to reproduce the problem

  1. arrowElement set to div where I will place the arrow
  2. Print value of data.arrowElement in onUpdate callback

What is the expected behavior?

Arrow div is printed to the console and placed between the reference and popper div.

What went wrong?

The arrow div is not positioned and not returned in the callback as if it’s ignored. This results in the value undefined being printed to the console.

Any other comments?

I couldn’t really find documentation nor examples of including an arrow with the popper on the internet at all, so specifying it as arrowElement in the Popper constructor is a guess, but I hoped it would work. What is the correct solution?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
janwidmercommented, Mar 7, 2018

@Overv It’s always a trade between flexibility and presets… not generating any markup give’s you all the options to use whatever markup for your popover.

The needed markup is very simple:

<div class="popper" id="example3popper1">
   <p>Your content</p>
    <div class="popper__arrow" x-arrow=""></div>
</div>
0reactions
FezVrastacommented, Feb 19, 2019

This is just a documentation ticket, there’s nothing broken with the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improve arrow modifier docs · Issue #514 - GitHub
The arrow div is not positioned and not returned in the callback as if it's ignored. This results in the value undefined being...
Read more >
Arrow | Popper
The arrow modifier positions an inner element of the popper so it appears centered relative to the reference element, usually the triangle or...
Read more >
Build #1 for arrow-improve-0.1.0.0 - Hackage
Modifiers ( Test/QuickCheck/Modifiers.hs, ... Class' Documentation created: dist/doc/html/data-default-class/index.html Installing library in ...
Read more >
Change how paragraphs & fonts look - Android - Google Docs ...
tap Paragraph. Next to "Line spacing," use the arrows to choose the amount of space you want between the lines in the paragraph....
Read more >
How to change your margins in Google Docs in 2 ways
The right arrow modifies the right indent. Note: For these indent changes to impact more than one paragraph at a time, select multiple....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found