-
Notifications
You must be signed in to change notification settings - Fork 114
feat(modal)- Return closable instance #2159
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: e1b3f1e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add some unit tests where applicable.
| return super.open(config); | ||
| } | ||
|
|
||
| public close<TReason = any>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really needed? Will be inherited from base ModalService, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have implemented it similar to the open service, should changes be made there too?
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a valuable feature for programmatically closing modals. The implementation for Angular is solid. However, there are a few points of improvement for the React and Vue wrappers to ensure consistency and robustness. I've noted a potential runtime error in the Vue implementation and suggested aligning the React and Vue APIs with the other frameworks by exposing a closeModal function.
|
💡 What is the current behavior?
Currently there is not close function for modal when used in angular, react and vue
GitHub Issue Number: #
JIRA- IX-1318
🆕 What is the new behavior?
Modal now has a close function which can be accessed from outside to close modal based on custom logic.
🏁 Checklist
A pull request can only be merged if all of these conditions are met (where applicable):
pnpm test)pnpm lint)pnpm build, changes pushed)👨💻 Help & support