From 79878019f39bf9e1ddce5515eaef7f51e513e9b7 Mon Sep 17 00:00:00 2001 From: vdegenne Date: Wed, 14 Feb 2024 12:06:53 +0100 Subject: [PATCH] chore(dialog): change animation properties to methods --- dialog/internal/dialog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialog/internal/dialog.ts b/dialog/internal/dialog.ts index ce16476e87..494ba3988b 100644 --- a/dialog/internal/dialog.ts +++ b/dialog/internal/dialog.ts @@ -77,13 +77,13 @@ export class Dialog extends LitElement { * Gets the opening animation for a dialog. Set to a new function to customize * the animation. */ - getOpenAnimation = () => DIALOG_DEFAULT_OPEN_ANIMATION; + getOpenAnimation() { return DIALOG_DEFAULT_OPEN_ANIMATION; } /** * Gets the closing animation for a dialog. Set to a new function to customize * the animation. */ - getCloseAnimation = () => DIALOG_DEFAULT_CLOSE_ANIMATION; + getCloseAnimation() { return DIALOG_DEFAULT_CLOSE_ANIMATION; } private isOpen = false; private isOpening = false;