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