@stoker-platform/web-app 0.5.76 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.77
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: fix quill table initialisation
8
+
3
9
  ## 0.5.76
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.76",
3
+ "version": "0.5.77",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/Form.tsx CHANGED
@@ -1650,11 +1650,14 @@ const RichTextEditor = forwardRef<
1650
1650
  }
1651
1651
 
1652
1652
  if (formField.value) {
1653
- quill.updateContents(formField.value)
1653
+ quill.updateContents(formField.value, Quill.sources.SILENT)
1654
+ formField.onChange(quill.getContents())
1654
1655
  }
1655
1656
 
1656
- quill.on(Quill.events.TEXT_CHANGE, () => {
1657
- formField.onChange(quill.getContents())
1657
+ quill.on(Quill.events.TEXT_CHANGE, (_delta: Delta, _oldContents: Delta, source: string) => {
1658
+ if (source !== Quill.sources.SILENT) {
1659
+ formField.onChange(quill.getContents())
1660
+ }
1658
1661
  })
1659
1662
 
1660
1663
  return () => {