Skip to content

Commit

Permalink
Update dropdown.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-Le-Goff authored Nov 15, 2024
1 parent ad3dcf9 commit eef844a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
}

Expand Down

0 comments on commit eef844a

Please sign in to comment.