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

Fix type of anchorEl in Popover, fixes positioning in Popover and Menu #207

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

reebalazs
Copy link
Contributor

The anchorEl accepts a dom element, not a ref. Since it does not try to resolve the ref, the result is the same as if anchorEl would be missing.

Instead it should accept a nullable dom element.

The anchorEl accepts a dom element, not a ref. Since it does not try to
resolve the ref, the result is the same as if anchorEl would be missing.

Instead it should accept a nullable dom element.
@reebalazs
Copy link
Contributor Author

Hi, please check if this fix is correct, I've only started to update to Rescript 11 + Mui 5, and so far I've only tested this with a Menu manually. However from the Mui code and docs it looks to me that anchorEl - at least in Popover and Menu - does not resolve a ref, but it simply requires a dom element to be passed.

@fhammerschmidt fhammerschmidt merged commit e160944 into cca-io:master Dec 25, 2023
1 check passed
@fhammerschmidt
Copy link
Member

You are right, the TS types also don't use a ref but just a html element here. Thanks!

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.

2 participants