Open
Description
removeWidget
takes type GridStackElement = string | HTMLElement | GridItemHTMLElement
public removeWidget(els: GridStackElement, removeDOM = true, triggerEvent = true): GridStack {..}
And the react version is violating the above
removeWidget: (id: string) => void;
This triggered a chain of changes and there is on concern with one of the changes,
<GridStackWidgetContext.Provider key={id} value={{ widget: { id } }} />
Note key={id}
here, id
is GridStackElement
which it could be a HTMLElement
and I don't think it is ideal to pass HTMLElement
as the key.