@saasquatch/squatch-js 2.3.2-13 → 2.3.2-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/toolbar.tsx CHANGED
@@ -404,8 +404,10 @@ function MockedWidgets(props) {
404
404
  onClick={() => {
405
405
  if (showWidget) {
406
406
  setShowWidget(false);
407
+ element?.close();
407
408
  } else {
408
409
  console.log("element?", element);
410
+ setShowWidget(true);
409
411
  element?.open();
410
412
  }
411
413
  }}