-
Notifications
You must be signed in to change notification settings - Fork 0
добавлен vanilla popper, удален react-popper из проекта #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -27,14 +29,14 @@ function PopupManagerForClick({ | |||
const Element = React.useCallback( | |||
(context: VisibilityManagerContextInterface) => ( | |||
<> | |||
<ReactPopperReference> | |||
<Reference> | |||
{({ ref: reactPopperReferenceRef }) => ( | |||
<TriggerElement | |||
{...context} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мне не очень нравиться что попер так сильно связан с VisibilityManagerContextInterface. По факту, я хочу чтобы попер занимался только позиционированием моего элемента. А как и когда его показывать уже должен решать я. И желательно чтоб я это мог пропсами рулить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поэтому PopupManagerForClick.tsx и тот же для hover вообще не должны знать что они poper отображают
…, добавлен из @worksolutions/react-utils
No description provided.