Skip to content
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

Popup - allow mouseEnter, mouseLeave delay to be set via props #1163

Closed
bw2 opened this issue Jan 15, 2017 · 6 comments
Closed

Popup - allow mouseEnter, mouseLeave delay to be set via props #1163

bw2 opened this issue Jan 15, 2017 · 6 comments

Comments

@bw2
Copy link

bw2 commented Jan 15, 2017

Currently mouseEnter and mouseLeave delay values are hard-coded.
https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/modules/Popup/Popup.js#L264

It would be great if these could be set via popup props.

@levithomason
Copy link
Member

levithomason commented Jan 16, 2017

This is actually a bug. All portal props (i.e. mouseEnterDelay, etc.) can be added to a Popup and it should pass them through to the underlying Portal:

https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/modules/Popup/Popup.js#L346

However, when I try this in the doc site editor, I cannot get it to work. It seems the value is always overridden somehow.

Fix

Currently, there is no visibility of this in the docs nor typings. We should instead explicitly add all the portal props to the Popup's propTypes and typings. Doing this will also change how the props are built-up and consumed. This may in fact also resolve the bug.

@tarang9211
Copy link
Contributor

@levithomason this still open? i'd like to help out if so, with more info and knowledge of how to reproduce it!

@levithomason
Copy link
Member

I, unfortunately, don't have the bandwidth for a walkthrough, however, you can check out #1169 for more info on what needs to happen here. I will be glad to offer PR review comments regarding what is missing or needs done, I just can't promise that I'll be able to also help craft the solutions.

@kasbah
Copy link
Contributor

kasbah commented Feb 23, 2017

This seems to be fixed in 0.66.0 but it's not documented. Works for me with mouseLeaveDelay and mouseEnterDelay props.

@levithomason
Copy link
Member

I've revamped a lot of Portal and Popup logic. Confirming it was fixed in the latest release.

http://g.recordit.co/tybYxhNGmo.gif

Closing this issue as we have #1169 for documenting missing props and behaviors.

@nfantone
Copy link

nfantone commented Feb 24, 2018

@levithomason I tried this today and, while it seems to work (behaves like your GIF above), the Popup is still triggered by a click event, even if setting on="hover".

znybz6ew6x

(Note that mouseEnterDelay is set to 10s).


EDIT: Created #2583.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants