Causes UI to stop responding to state changes
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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} ...
- Lenguaje dominante
- JavaScript
- Estrellas
- 9.3k
- Forks
- 1k
- Merge medio
- 2 h 35 min
- PR fusionados (30 d)
- 4
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de react-grid-layout/react-draggable
-
React.lazy(() => import('react-draggable')) fails TypeScript: typeof Draggable is not assignable to ComponentTypePosiblemente ocupada @tevinch la tomó hace 8 días. Abiertobug ready-for-agent
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
react-grid-layout/react-draggable#822 · 2 comentarios ·
-
V4.5.0 Chrome Extension ErrorAbiertobug needs-info
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
react-grid-layout/react-draggable#782 · 2 comentarios ·
-
bug needs-info
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
react-grid-layout/react-draggable#772 · 1 comentario ·
-
error in react 19Posiblemente ocupada @Juice-de-Orange la tomó hace 4 días. Abiertobug ready-for-agent
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
react-grid-layout/react-draggable#771 · 14 comentarios · 31 reacciones ·
-
enhancement ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
react-grid-layout/react-draggable#762 · 1 comentario ·
Todos los issues de react-grid-layout/react-draggable
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
developmentseed/deck.gl-raster#693 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
iii-hq/iii#2278 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
dependencies security
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
[DevEx]: Playground specs are excluded from both GUI and CI, so videoPlayground is unreachableAbiertodev experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cuttle-cards/cuttle#1413 ·
Los mantenedores suelen responder en 1 día
-
macOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
beyondcode/herd-community#1761 ·