From eef844a6a5cf618f03d82c65d82ad1f415d8b405 Mon Sep 17 00:00:00 2001 From: Hugo Le Goff Date: Sat, 16 Nov 2024 00:24:33 +0100 Subject: [PATCH] Update dropdown.js --- src/dropdown.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dropdown.js b/src/dropdown.js index 3123355..978d3d5 100644 --- a/src/dropdown.js +++ b/src/dropdown.js @@ -85,13 +85,13 @@ export default class extends Controller { get transitionOptions() { // once the Class API default values are available, we can simplify this return { - enter: this.hasEnterClass ? ...this.enterClasses : 'transition ease-out duration-100', - enterFrom: this.hasEnterFromClass ? ...this.enterFromClasses : 'transform opacity-0 scale-95', - enterTo: this.hasEnterToClass ? ...this.enterToClasses : 'transform opacity-100 scale-100', - leave: this.hasLeaveClass ? ...this.leaveClasses : 'transition ease-in duration-75', - leaveFrom: this.hasLeaveFromClass ? ...this.leaveFromClasses : 'transform opacity-100 scale-100', - leaveTo: this.hasLeaveToClass ? ...this.leaveToClasses : 'transform opacity-0 scale-95', - toggleClass: this.hasToggleClass ? ...this.toggleClasses : 'hidden', + enter: this.hasEnterClass ? this.enterClasses.join(' ') : 'transition ease-out duration-100', + enterFrom: this.hasEnterFromClass ? this.enterFromClasses.join(' ') : 'transform opacity-0 scale-95', + enterTo: this.hasEnterToClass ? this.enterToClasses.join(' ') : 'transform opacity-100 scale-100', + leave: this.hasLeaveClass ? this.leaveClasses.join(' ') : 'transition ease-in duration-75', + leaveFrom: this.hasLeaveFromClass ? this.leaveFromClasses.join(' ') : 'transform opacity-100 scale-100', + leaveTo: this.hasLeaveToClass ? this.leaveToClasses.join(' ') : 'transform opacity-0 scale-95', + toggleClass: this.hasToggleClass ? this.toggleClasses.join(' ') : 'hidden', } }