@topconsultnpm/sdkui-react-beta 6.12.75 → 6.12.77

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
@@ -20,6 +22,8 @@ const TMHtmlEditor = (props) => {
20
22
  }, [isEditorEnabledProp]);
21
23
  // Handler for value change
22
24
  const onValueChangeCallback = (text) => {
25
+ if (text === initialMarkup)
26
+ return;
23
27
  setMarkup(text);
24
28
  if (onValueChanged) {
25
29
  onValueChanged({ value: text });
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.77",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",