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: showModal using onKeyDown Enter not working #3025

Closed
Drian-key opened this issue May 9, 2024 · 2 comments
Closed

bug: showModal using onKeyDown Enter not working #3025

Drian-key opened this issue May 9, 2024 · 2 comments

Comments

@Drian-key
Copy link

What version of daisyUI are you using?

^4.8.0

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

Describe your issue

document.getElementById("deletePurcaseOrder").showModal();

not working using on key down Enter, but if i using an-other key its work

Copy link

github-actions bot commented May 9, 2024

Thank you @Drian-key for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi
Copy link
Owner

daisyUI is just the CSS. We're simply using the HTML <dialog> element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

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

No branches or pull requests

2 participants