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 prop type check for NcPopover setReturnFocus #3803

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Feb 21, 2023

This fixes the invalid prop type check for NcPopover setReturnFocus. As per the focus-trap docs, allowed values are
HTMLElement | SVGElement | string | Boolean, see
https://github.com/focus-trap/focus-trap/blob/4cbbef5e971bcdadcc07c3cbb08d0fccfc001809/index.d.ts#L4-L5

Fixes #3801.

@raimund-schluessler raimund-schluessler added bug Something isn't working 3. to review Waiting for reviews feature: popover Related to the popovermenu component regression Regression of a previous working feature labels Feb 21, 2023
@raimund-schluessler raimund-schluessler added this to the 7.7.0 milestone Feb 21, 2023
@raimund-schluessler raimund-schluessler marked this pull request as ready for review February 21, 2023 08:20
Copy link

@tacruc tacruc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Thanks.

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work properly, according to docs. Would be nice to see it in release ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: popover Related to the popovermenu component regression Regression of a previous working feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NcActions passes invalid type to NcPopover prop setReturnFocus
3 participants