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

Call onClose callback when Modal gets closed #5420

Conversation

sdvg
Copy link
Member

@sdvg sdvg commented Oct 9, 2023

No description provided.

export type KoliBriModalEventCallbacks = {
onClose?: EventCallback<Event>;
onClose?: () => void;
Copy link
Member Author

Choose a reason for hiding this comment

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

Event bzw. EventCallback benötigt immer ein Event Parameter, das wir hier nicht haben, wenn das Modal von "außen" geschlossen wurde.

Copy link
Contributor

Choose a reason for hiding this comment

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

Man könnte ein eigenes Event erzeugen. So wird es z. B. in der Card gemacht:

this._on.onClose(new Event('Close'));

export type KoliBriModalEventCallbacks = {
onClose?: EventCallback<Event>;
onClose?: () => void;
Copy link
Contributor

Choose a reason for hiding this comment

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

Man könnte ein eigenes Event erzeugen. So wird es z. B. in der Card gemacht:

this._on.onClose(new Event('Close'));

Copy link
Contributor

@deleonio deleonio left a comment

Choose a reason for hiding this comment

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

@sdvg: Ich habe den Lösungsansatz bzgl. des Issues noch verstanden. Lass uns bitte im nächsten Meeting kurz dazu sprechen. Danke

@deleonio deleonio merged commit 1089b9a into develop Oct 16, 2023
2 checks passed
@deleonio deleonio deleted the 5395-bug-wenn-ein-modal-per-esc-geschlossen-wird-kann-es-nicht-noch-einmal-geöffnet-werden branch October 16, 2023 12:05
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 Bug: wenn ein Modal per ESC geschlossen wird, kann es nicht noch einmal geöffnet werden
3 participants