codesandbox / codesandbox/codesandbox-client
I can't edit the code editor when Chakra-ui Drawer is open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
How has this issue affected you? What are you trying to accomplish?
I was working on the chakra-ui drawer example but i realized that i can no longer edit text outside of the the preview area. I created the drawer area and i just set the default props to always be open. And then i noticed this problem.
I tried the fix this problem myself and i was delete the portal element in the preview area on the dev tools and problems is solved at that time. I think this problems may be related to React Portal.
To Reproduce
Link to sandbox: ChakraUI Drawer Example
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | Latest |
| Browser | Version 103.0.5060.53 (Official Build) (64-bit) |
| Operating System | Ubuntu 16.04 LTS |
Contributor guide
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
Start by opening the linked CodeSandbox and reproducing the issue with the Chakra UI Drawer permanently open. Inspect the preview's React Portal behavior and compare it with the reported DevTools workaround. Done means text outside the preview remains editable while the Drawer is open, without requiring portal removal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100