@bbl-digital/snorre 4.1.11 → 4.1.12

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/dist/bundle.js CHANGED
@@ -35611,8 +35611,10 @@ to {top: 100vh;}
35611
35611
  React.useEffect(() => {
35612
35612
  if (!quill) return;
35613
35613
  const handleBlur = () => {
35614
- const html = quill.root.innerHTML;
35615
- onBlur && onBlur(html);
35614
+ setTimeout(() => {
35615
+ const html = quill.root.innerHTML;
35616
+ onBlur && onBlur(html);
35617
+ }, 50);
35616
35618
  };
35617
35619
  quill.root.addEventListener('blur', handleBlur);
35618
35620
  return () => {
@@ -208,8 +208,10 @@ const QuillEditor = ({
208
208
  useEffect(() => {
209
209
  if (!quill) return;
210
210
  const handleBlur = () => {
211
- const html = quill.root.innerHTML;
212
- onBlur && onBlur(html);
211
+ setTimeout(() => {
212
+ const html = quill.root.innerHTML;
213
+ onBlur && onBlur(html);
214
+ }, 50);
213
215
  };
214
216
  quill.root.addEventListener('blur', handleBlur);
215
217
  return () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoR3C,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsR3C,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -208,8 +208,10 @@ const QuillEditor = ({
208
208
  useEffect(() => {
209
209
  if (!quill) return;
210
210
  const handleBlur = () => {
211
- const html = quill.root.innerHTML;
212
- onBlur && onBlur(html);
211
+ setTimeout(() => {
212
+ const html = quill.root.innerHTML;
213
+ onBlur && onBlur(html);
214
+ }, 50);
213
215
  };
214
216
  quill.root.addEventListener('blur', handleBlur);
215
217
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",