@sincpro/web-ui 2.19.0 → 2.19.1

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.
@@ -298,7 +298,10 @@ export function RichTextEditor({ id, labelledBy, describedBy, invalid, ariaLabel
298
298
  active,
299
299
  listId,
300
300
  ]);
301
- useEffect(() => editor?.setEditable(!disabled), [editor, disabled]);
301
+ /* Without emitting: tiptap's `setEditable` tells an `update` by default, and on mount that
302
+ handed the field its own serialization of the stored HTML as if the person had typed it —
303
+ every record with a rich text opened asking to be saved (#99). */
304
+ useEffect(() => editor?.setEditable(!disabled, false), [editor, disabled]);
302
305
  /* One picture after another, in the order given; each goes in where the caret is when it
303
306
  arrives (or where it was dropped), so typing meanwhile is not lost. */
304
307
  uploadRef.current =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sincpro/web-ui",
3
- "version": "2.19.0",
3
+ "version": "2.19.1",
4
4
  "description": "An enterprise web design system for business software — ERPs, back offices, management tools — in React and Tailwind: tokens, primitives, components and the two views every management screen is made of.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",