Skip to content

[Drawer] PaperProps className override base class #18714

@siriwatknp

Description

@siriwatknp
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

forwarding className to PaperProps in Drawer remove className from Drawer.

Expected Behavior 🤔

className should append to Paper in Drawer

Steps to Reproduce 🕹

const App = () => {
  return (
    <Drawer
      PaperProps={{
        className: "my-class"
      }}
    >...</Drawer>
  )
}

Drawer will not be fixed anymore

Tech Version
Material-UI v4.7.0
React
Browser
TypeScript
etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: drawerChanges related to the drawer.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions