react-bootstrap icon indicating copy to clipboard operation
react-bootstrap copied to clipboard

Docs: Move "placement" property from "Tooltip" to "Overlay Trigger"

Open skitterm opened this issue 10 years ago • 6 comments

From the docs, I thought I needed to put the "placement" prop on the Tooltip component itself. Only by looking at someone's example did I realize I have to put it on the OverlayTrigger. Can the docs be updated so that it's clear that the "placement" property should be on the OverlayTrigger and not the Tooltip component?

skitterm avatar Sep 09 '16 16:09 skitterm

Interesting. It actually is on the overlay and the tooltip. I think we need to add the prop types to <Overlay>.

taion avatar Sep 15 '16 04:09 taion

Does it make sense to have this property in other cases the Overlay is used? Or is it specific to tooltips?

ghusse avatar Oct 09 '16 20:10 ghusse

Yep, placement is used for custom Overlays too - https://react-bootstrap.github.io/components.html#custom-overlays-overlay

kevinzwhuang avatar Nov 04 '16 05:11 kevinzwhuang

fixed by #2318?

taion avatar Nov 08 '16 20:11 taion

I think the new version of the docs still need to be released to the site repo

kevinzwhuang avatar Nov 08 '16 22:11 kevinzwhuang

Oh... yeah, I'll do that in a bit. Looks like the docs are properly fixed though. Thanks!

taion avatar Nov 08 '16 22:11 taion