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

[select,datetime2] support popoverProps.targetTagName #5713

Merged
merged 3 commits into from
Nov 4, 2022

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Nov 4, 2022

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

While migrating a large codebase to Popover2, I noticed some v2 components no longer supported popoverProps.targetTagName like they did with Popover. Although this use case is rare, I think we can continue supporting it in Popover2.

This PR does a few things:

  • 🌟 feat(InputGroup): new prop tagName allows customizing the tag name of the HTML element that contains the input group
  • 🔧 fix(Select2, Suggest2, MultiSelect2): restore support for popoverProps={{ targetTagName }}, which was previously available in the v1 components with <Popover>
  • 🔧 fix(DateInput2, DateRangeInput2): restore support for popoverProps={{ targetTagName }}, which was previously available in the v1 components with <Popover>
  • 🌟 feat(DateInput2, DateRangeInput2): new prop popoverRef allows access to the Popover2 instance, sometimes useful for repositioning the popover

Reviewers should focus on:

No regressions

Screenshot

@blueprint-bot
Copy link

remove unused import

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

fix test compilation

Previews: documentation | landing | table | demo

@adidahiya
Copy link
Contributor Author

Looks good in the preview build, although I did find this unrelated bug: #5714

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