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

[Bug]: showOnDialogEnter not being honored for dialogs #2722

Open
flendar opened this issue Jan 18, 2025 · 0 comments
Open

[Bug]: showOnDialogEnter not being honored for dialogs #2722

flendar opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@flendar
Copy link

flendar commented Jan 18, 2025

Vibe version

3.16.0

Describe the bug

showOnDialogEnter doesn't appear to be working for Dialogs the way it does for Tooltips. Whether present or not, on mouse leave of the anchoring element, the dialog closes automatically.

Expected behavior

Given the showOnDialogEnter prop being specified on the Dialog component, when hovering (or whatever show trigger) on the anchoring element, the dialog should open, and if the mouse moves from the anchor to the dialog, it should remain open.

Steps to reproduce

  <Dialog
    content={<DialogContentContainer><ExampleContent /></DialogContentContainer>}
    hideTrigger={[
      'mouseleave'
    ]}
    position="right"
    showOnDialogEnter
    showTrigger={[
      'mouseenter'
    ]}
  >
    <IconButton
      active
      icon={function noRefCheck(){}}
      kind="secondary"
    />
  </Dialog>

Reproduction example link

No response

System Info

Additional context, Screenshots

No response

@flendar flendar added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant