Skip to content

Commit

Permalink
fix notification actions (trying to get .target of newly created event)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 13, 2023
1 parent 7fb423b commit 032192e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions haxe/ui/notifications/Notification.hx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class Notification extends VBox {
}

private function onActionButton(event:MouseEvent) {
var event = new NotificationEvent(NotificationEvent.ACTION);
event.notification = this;
dispatch(event);
NotificationManager.instance.dispatch(event, this);
var notificationEvent = new NotificationEvent(NotificationEvent.ACTION);
notificationEvent.notification = this;
dispatch(notificationEvent);
NotificationManager.instance.dispatch(notificationEvent, this);

var actionData:NotificationActionData = event.target.userData;
if (actionData.callback != null) {
Expand Down

0 comments on commit 032192e

Please sign in to comment.