From 26fa83662155526d505ac1f597fa45a1e9322a33 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sat, 31 Dec 2022 18:54:02 -0800 Subject: [PATCH 1/2] partially fixed Rect complex example for #2094 * fixeds part of the demo dprokop sent out, but running into a React issue I'm not familiar with... * ultimately this is NOT the way to do things (added comment), and will concentrate on a good Angular complex demo instead... already spent 1.5d on this! --- demo/index.html | 2 +- demo/react-hooks-controlled-multiple.html | 104 +++++++++++++--------- demo/react-hooks.html | 6 +- 3 files changed, 68 insertions(+), 44 deletions(-) diff --git a/demo/index.html b/demo/index.html index 4f49cab0b..a7e688504 100644 --- a/demo/index.html +++ b/demo/index.html @@ -20,7 +20,7 @@

Demos

  • Nested Advanced grids
  • Offset parent
  • ReactJS (Hooks)
  • -
  • ReactJS (Hooks), mulitple, controlled
  • +
  • ReactJS (Hooks), mulitple, controlled (NOT RECOMMENDED - BROKEN)
  • ReactJS
  • Responsive
  • Right-To-Left (RTL)
  • diff --git a/demo/react-hooks-controlled-multiple.html b/demo/react-hooks-controlled-multiple.html index 3fa902155..53bedc45b 100644 --- a/demo/react-hooks-controlled-multiple.html +++ b/demo/react-hooks-controlled-multiple.html @@ -6,12 +6,13 @@ Gridstack.js React integration example + - - - - + + + + @@ -22,8 +23,12 @@

    Controlled stack