@social-mail/social-mail-client 1.8.349 → 1.8.351

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.8.349",
3
+ "version": "1.8.351",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -294,6 +294,9 @@ const keyboardEditingSymbol = Symbol("keyboardEditing");
294
294
 
295
295
  const eventKeyDown = (editor: HtmlPageEditor, e: KeyboardEvent) => {
296
296
  const element = e.target as HTMLElement;
297
+ if (element.hasAttribute("data-property-value-editor")) {
298
+ return;
299
+ }
297
300
  const currentElement = e.currentTarget as HTMLElement;
298
301
  if (!currentElement.hasAttribute("data-edit")) {
299
302
  return;
@@ -365,9 +368,14 @@ const eventKeyDown = (editor: HtmlPageEditor, e: KeyboardEvent) => {
365
368
 
366
369
  };
367
370
 
371
+ const previousFocus = Symbol("previousFocus");
372
+
368
373
  const updateFocus = (e, b) => {
369
374
  if (b) {
370
- e.focus();
375
+ const { activeElement } = document;
376
+ if(activeElement && !activeElement.hasAttribute("data-property-value-editor")) {
377
+ e.focus();
378
+ }
371
379
  }
372
380
  return b;
373
381
  };