Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f41a4cd3

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

import menu start

re #9741

Zobrazit rozdíly:

frontend/src/features/TrackingTool/DraggableList/DraggableList.tsx
12 12
    onDragEnd: OnDragEndResponder
13 13
}
14 14

  
15
const DraggableList = memo(({ items, onDragEnd }: DraggableListProps) => {
16
    window.addEventListener('error', (e) => {
17
        if (
18
            e.message ===
19
                'ResizeObserver loop completed with undelivered notifications.' ||
20
            e.message === 'ResizeObserver loop limit exceeded'
21
        ) {
22
            e.stopImmediatePropagation()
23
        }
24
    })
15
window.addEventListener('error', (e) => {
16
    if (
17
        e.message ===
18
            'ResizeObserver loop completed with undelivered notifications.' ||
19
        e.message === 'ResizeObserver loop limit exceeded'
20
    ) {
21
        e.stopImmediatePropagation()
22
    }
23
})
25 24

  
25
const DraggableList = memo(({ items, onDragEnd }: DraggableListProps) => {
26 26
    return (
27 27
        <DragDropContext onDragEnd={onDragEnd}>
28 28
            <Droppable droppableId="droppable-list">

Také k dispozici: Unified diff