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]: Dialog (v8) does not produce click events #31320

Open
2 tasks done
kxmatejka opened this issue May 9, 2024 · 2 comments
Open
2 tasks done

[Bug]: Dialog (v8) does not produce click events #31320

kxmatejka opened this issue May 9, 2024 · 2 comments
Labels

Comments

@kxmatejka
Copy link

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12800H
    Memory: 21.66 GB / 31.18 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh

Are you reporting Accessibility issue?

no

Reproduction

https://codepen.io/krystof-matejka/pen/mdYdELr

Bug Description

Actual Behavior

When I register click event handler window.addEventListener('click', (e) => console.log('clicked on', e)) it does not produce events on elements, for example buttons, within Dialog component.

Expected Behavior

I expect that click events will be produced even from Dialog.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@Shubhdeep12
Copy link

Shubhdeep12 commented May 14, 2024

Hi @kxmatejka is it working fine in v9?

@kxmatejka
Copy link
Author

hello @Shubhdeep12 yes it works in v9. unfortunately, i cannot upgrade

demo: https://stackblitz.com/edit/dpihmf?file=src%2Fexample.tsx

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

No branches or pull requests

3 participants