From e572d2fed3aef325dabba41ef4339a48fb61dcd5 Mon Sep 17 00:00:00 2001 From: Axel Peter Date: Tue, 8 Jan 2019 11:13:15 +0100 Subject: [PATCH] fix(oui-slideshow): fix onDismiss callback --- packages/oui-slideshow/src/slideshow.controller.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/oui-slideshow/src/slideshow.controller.js b/packages/oui-slideshow/src/slideshow.controller.js index d0214f6d..3b67c32e 100644 --- a/packages/oui-slideshow/src/slideshow.controller.js +++ b/packages/oui-slideshow/src/slideshow.controller.js @@ -67,9 +67,7 @@ export default class { } closeOnBoarding () { - if (this.onDismiss) { - this.onDismiss(event); - } + this.onDismiss(); this.$document.off("keydown", evt => this._triggerKeyHandler(evt)); this.$scope.$broadcast("oui:modalOnBoarding:afterClose", this.id);