Skip to content

Commit

Permalink
[v4] [core] fix(Drawer): revert breaking change to position prop (#4972)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Oct 19, 2021
1 parent 137408a commit 98505e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface IDrawerProps extends OverlayableProps, IBackdropProps, Props {
*
* @default Position.RIGHT
*/
position: Position;
position?: Position;

/**
* CSS size of the drawer. This sets `width` if horizontal position (default)
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Drawer extends AbstractPureComponent2<DrawerProps> {

public render() {
const { size, style, position } = this.props;
const realPosition = getPositionIgnoreAngles(position);
const realPosition = getPositionIgnoreAngles(position!);

const classes = classNames(
Classes.DRAWER,
Expand Down

1 comment on commit 98505e0

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[v4] [core] fix(Drawer): revert breaking change to position prop (#4972)

Previews: documentation | landing | table | modern colors demo

Please sign in to comment.