Skip to content

Fix prop type check for NcPopover setReturnFocus - #3803

Merged
raimund-schluessler merged 1 commit into
masterfrom
fix/3801/actions-return-focus-type
Feb 21, 2023
Merged

Fix prop type check for NcPopover setReturnFocus#3803
raimund-schluessler merged 1 commit into
masterfrom
fix/3801/actions-return-focus-type

Conversation

@raimund-schluessler

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

Copy link
Copy Markdown
Contributor

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
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler
raimund-schluessler force-pushed the fix/3801/actions-return-focus-type branch from 19ac3eb to 7ebbaa5 Compare February 21, 2023 08:18
@raimund-schluessler
raimund-schluessler marked this pull request as ready for review February 21, 2023 08:20

@tacruc tacruc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice Thanks.

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

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