Skip to content

Conversation

@kricsleo
Copy link
Collaborator

resolves #2118

The entryFocus/openAutoFocus events were removed in PR https://github.com/unovue/reka-ui/pull/665/files#diff-8c2f58c8ccca9f2d06c2bde73a649a7b23180c696e73ede751e31c6623b5254dR7. I'm not sure why, but this caused the event types to mismatch the runtime behavior (these events are still emitted). So, I think it's better to revert this type omitting change.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 17, 2025

Open in StackBlitz

npm i https://pkg.pr.new/reka-ui@2119

commit: 734fe0f

@kricsleo kricsleo changed the title fix(Menu): correct emitted events to match runtime behavior fix(Menu): correct emitted event types to match runtime behavior Aug 17, 2025
@zernonia
Copy link
Member

@kricsleo I rmb those 2 emit was designed to be use internally only. Exposing it might leads to unintended behavior if user should choose to event.preventDefault

@kricsleo
Copy link
Collaborator Author

So you're suggesting we remove the runtime behavior as well as the types? 🤔
(Regardless, it's better to align the runtime behavior with types.)

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

Successfully merging this pull request may close these issues.

[Feature]: DropdownMenuContent should emit openAutoFocus

2 participants