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

feat(core/modal): return modal instance when opening a new modal #215

Merged
merged 5 commits into from
Dec 6, 2022

Conversation

nuke-ellington
Copy link
Collaborator

@nuke-ellington nuke-ellington commented Dec 5, 2022

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (yarn build) was run locally and any changes were pushed
  • Unit tests (yarn test) were run locally and passed
  • Visual Regression Tests (yarn visual-regression) were run locally and passed
  • Linting (npm lint) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bug fix
  • Feature
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

GitHub Issue Number: #72

What is the new behavior?

  • Add html element reference to modal object

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@danielleroux danielleroux added this to the 1.2.0 milestone Dec 5, 2022
@danielleroux danielleroux linked an issue Dec 5, 2022 that may be closed by this pull request
Copy link
Collaborator

@danielleroux danielleroux left a comment

Choose a reason for hiding this comment

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

  • try to implement JavaScript, Angular and React in a equal way

packages/core/src/components/modal/modal-utils.ts Outdated Show resolved Hide resolved
@danielleroux
Copy link
Collaborator

@nuke-ellington lgtm can you please check my changes?

@nuke-ellington
Copy link
Collaborator Author

@danielleroux lgtm

@danielleroux danielleroux merged commit 097acfc into main Dec 6, 2022
@danielleroux danielleroux deleted the feat/modal-ref branch December 6, 2022 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

modal element not easily accessible without query document
2 participants