Skip to content

Commit

Permalink
fix(ui-drawer-layout): fix drawerlayout transition bug
Browse files Browse the repository at this point in the history
Closes: INSTUI-4022

When placement property is set to 'end', a weird scrollbar
appears during transition. Transition type is set to
'fade' as a fix.
  • Loading branch information
joyenjoyer committed Apr 3, 2024
1 parent 114dea2 commit 27ae4f1
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -126,12 +126,8 @@ class DrawerTray extends Component<
) as DrawerTrayPlacement
}

get direction() {
return this.placement === 'end' ? 'right' : 'left'
}

get transition(): TransitionType {
return `slide-${this.direction}`
return this.placement === 'end' ? 'fade' : 'slide-left'
}

handleContentRef = (node: HTMLDivElement | null) => {
Expand Down

0 comments on commit 27ae4f1

Please sign in to comment.