@topconsultnpm/sdkui-react-beta 6.12.75 → 6.12.76

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.
@@ -10,8 +10,10 @@ const TMHtmlEditor = (props) => {
10
10
  // State for editor enable/disable
11
11
  const [isEditorEnabled, setIsEditorEnabled] = useState(false);
12
12
  // State to hold HTML markup
13
- const [markup, setMarkup] = useState("");
13
+ const [markup, setMarkup] = useState(initialMarkup);
14
14
  useEffect(() => {
15
+ if (markup === initialMarkup)
16
+ return;
15
17
  setMarkup(initialMarkup);
16
18
  }, [initialMarkup]);
17
19
  // Update isEditorEnabled when prop changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.12.75",
3
+ "version": "6.12.76",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",