-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dismiss on Escape #88
base: main
Are you sure you want to change the base?
Conversation
@glatzert, also jetzt fangen wir das Event direkt ab, anstatt mit Tasteneingaben zu arbeiten |
…log, also removed libman.json
@glatzert so wir benutzen jetzt die onAfterRender und entfernen den EventListener auch wieder am Ende. Wie die libman.json entstanden ist, das ist mir noch ein Rätsel. |
Jemand hat sich verklickt (Manage Client-Side dependencies) und hat dann beim Commit nicht aufgepasst, was gestaged ist ;) |
@@ -119,10 +128,12 @@ | |||
|
|||
public void Close(ModalResult result) | |||
{ | |||
_ = _jsModule!.InvokeVoidAsync("CloseDialog", _componentId); | |||
if (_taskCompletionSource.Task.IsCompleted) return; |
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.
Immer
{
code
}
var dialog = document.getElementById(guid); | ||
dialog.removeEventListener("close", () => { reference.invokeMethodAsync("Close"); }); |
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.
Seid ihr sicher, dass das die Methode unten aus dem eventListener entfernt?
} | ||
} | ||
|
||
const testClass = new closeListener(); |
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.
Ich denke, Testcode sollte schon gar nicht in einem Commit sein, aber spätestens im PR sollte es nicht auftauchen.
Pressing escape now dismisses the modal