react-component / react-component/drawer
升级到8.0.0版本,mask遮住drawer的content,无法点击
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 425
- Forks
- 108
- Avg merge
- 2h 1m
- Merged PRs (30d)
- 1
Description
从7.2升级到8.0之后,mask遮罩层会挡住整个页面,一个最简单的demo就能试出问题
不是deps缓存问题,新建一个项目demo也会这样
`
import { useState } from 'react'
import Drawer from "rc-drawer";
import "rc-drawer/assets/index.css";
import './App.css'
function App() {
const [open, setOpen] = useState(false)
return (
<button onClick={() => setOpen(true)}>打开抽屉
<Drawer
open={open}
onClose={() => setOpen(false)}
width={600}
maskClosable={false}
>
content。。。。
<button onClick={() => setOpen(false)}>关闭
)
}
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the minimal React example using rc-drawer 8.0.0 and rc-drawer/assets/index.css, comparing it with 7.2. Inspect the Drawer rendering and mask styles first; done means content inside the drawer, including the close button, remains clickable while maskClosable is false.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100