-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
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.