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

[ModalBlocker]: abort function for keyboard event is memoized in first render #2659

Open
JuliaMV opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JuliaMV
Copy link
Contributor

JuliaMV commented Nov 25, 2024

Steps to Reproduce

Create a modal component with custom abort handler. This handler should be changed during user-interactions with this modal.
Sandbox

  • open console
  • open modal and click some times on Increment button but close modal by mouse-click on blocker. The result in console is equal to counter.
  • open modal one more time and click some times on Increment button and than close modal by clicking Escape button

Actual result

  • the output in console is 0

Expected result

  • the output in console should be equal to counter

2024-11-25_15h04_46

Environment

  • UUI version: 5.11.0
  • Browser name: any
  • Operating System: any
@JuliaMV JuliaMV added the bug Something isn't working label Nov 25, 2024
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
Status: Backlog
Development

No branches or pull requests

1 participant