Causes UI to stop responding to state changes
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, react
- Domain
- frontend
Research direction
Start by reproducing the reported interaction between a draggable container dialog, the MaterialTable, and the attachments state using the code sample in the issue. Trace whether adding an attachment reaches the state update and table data, and consider the issue resolved when the table responds to state changes while the dialog remains draggable.
Written by the indexing model from the issue text.
Description
I have a MaterialTable that is bound to a state variable that contains an array. It works beautifully, until I make the container dialog draggable.
...
const [attachments, setAttachments] = useState([]);
...
const onOkAttachmentHandler = (file) => {
//add attachment
if (file !== null) {
let attachment = { ownerId: props.entityId, labId: props.labId, filename: file.name, file: file, archive: false };
setAttachments((previousAttachments) => {
let newList = [...previousAttachments, attachment];
return newList;
});
props.attachmentAdded(attachment);
}
setAddAttachmentDialogVisible(false);
}
...
<MaterialTable title="Attachments" data={attachments} ...
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 4
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.
More from react-grid-layout/react-draggable
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
react-grid-layout/react-draggable#784 · 4 comments · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
react-grid-layout/react-draggable#782 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
react-grid-layout/react-draggable#781 · 1 comment · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
react-grid-layout/react-draggable#780 · 8 comments ·
All issues in react-grid-layout/react-draggable
Similar issues
-
Edit: CW+ Openchannels:edit check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
idean3885/claude-ops-agent#521 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Difficulty 2/5 1-3 hours Newbie friendliness 84/100