Browse Source
fix: Drawer should close if open is false (#39561)
* fix: Drawer should close if open is false
* chore: update script
* chore: update deps
pull/39706/head
MadCcc
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
components/drawer/index.tsx
-
package.json
|
|
@ -180,7 +180,7 @@ function Drawer(props: DrawerProps) { |
|
|
|
prefixCls={prefixCls} |
|
|
|
onClose={onClose} |
|
|
|
{...rest} |
|
|
|
open={open || visible} |
|
|
|
open={open ?? visible} |
|
|
|
mask={mask} |
|
|
|
push={push} |
|
|
|
width={mergedWidth} |
|
|
|
|
|
@ -50,7 +50,7 @@ |
|
|
|
"api-collection": "antd-tools run api-collection", |
|
|
|
"authors": "node ./scripts/generate-authors", |
|
|
|
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist", |
|
|
|
"bundlesize": "bundlesize", |
|
|
|
"bundlesize": "bundlesize --enable-github-checks", |
|
|
|
"size-limit": "size-limit", |
|
|
|
"check-commit": "node ./scripts/check-commit", |
|
|
|
"check-ts-demo": "node ./scripts/check-ts-demo", |
|
|
@ -128,7 +128,7 @@ |
|
|
|
"rc-checkbox": "~2.3.0", |
|
|
|
"rc-collapse": "~3.4.2", |
|
|
|
"rc-dialog": "~9.0.2", |
|
|
|
"rc-drawer": "~6.0.0", |
|
|
|
"rc-drawer": "~6.1.0", |
|
|
|
"rc-dropdown": "~4.0.0", |
|
|
|
"rc-field-form": "~1.27.0", |
|
|
|
"rc-image": "~5.12.0", |
|
|
@ -198,7 +198,7 @@ |
|
|
|
"bisheng-plugin-description": "^0.1.4", |
|
|
|
"bisheng-plugin-react": "^1.2.0", |
|
|
|
"bisheng-plugin-toc": "^0.4.4", |
|
|
|
"bundlesize": "^0.18.0", |
|
|
|
"bundlesize2": "^0.0.31", |
|
|
|
"chalk": "^4.0.0", |
|
|
|
"cheerio": "1.0.0-rc.12", |
|
|
|
"concurrently": "^7.0.0", |
|
|
|