Skip to content

[Context] Improve Tooltip Error Message when Arrow is outside Position #210

Open
@peduarte

Description

@peduarte

I was playing around with the Tooltip and I didn't think about the fact that the Arrow needed to be inside the Position Component.

I got this error:

Popper.Arrow must be used within Popper

image

Im not sure how doable this is, but it'd be great if the error message was:

Tooltip.Arrow must be used within Tooltip.Position

I think that would be a more helpful message since it represents what I've done. I understand that the Tooltip is built on top of the lower level Popper, but as I user I haven't imported or used that at all.

Cheers!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions