@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 +6 -0
- package/package.json +1 -1
- package/src/Form.tsx +6 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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
|
-
|
|
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 () => {
|