@phuong-tran-redoc/document-engine-angular 0.0.25 → 0.0.26

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.
@@ -4820,9 +4820,9 @@ class EditorBubbleMenuComponent {
4820
4820
  }
4821
4821
  ngAfterViewInit() {
4822
4822
  const bubbleElement = this.bubbleElement?.nativeElement;
4823
- if (bubbleElement) {
4824
- this.focusTrap.attach(bubbleElement);
4825
- }
4823
+ // if (bubbleElement) {
4824
+ // this.focusTrap.attach(bubbleElement);
4825
+ // }
4826
4826
  }
4827
4827
  ngOnDestroy() {
4828
4828
  if (this.cleanupSelection) {
@@ -4930,8 +4930,11 @@ class EditorBubbleMenuComponent {
4930
4930
  // if (isAttached) {
4931
4931
  // this.eventManager.detach(this.config.pluginKey);
4932
4932
  // }
4933
+ // Reset force open state
4934
+ this.forceOpen.value = false;
4933
4935
  this.destroyCurrentView();
4934
4936
  this.currentAttributes = {};
4937
+ this.cdr.markForCheck();
4935
4938
  }
4936
4939
  /**
4937
4940
  * Select which view should be shown initially
@@ -4989,7 +4992,7 @@ class EditorBubbleMenuComponent {
4989
4992
  requestAnimationFrame(() => {
4990
4993
  bubbleElement.setAttribute('data-visible', 'true');
4991
4994
  // Re-setup focus trap after view is created (focusable elements may have changed)
4992
- this.focusTrap.reattach(bubbleElement, true);
4995
+ // this.focusTrap.reattach(bubbleElement, true);
4993
4996
  });
4994
4997
  }
4995
4998
  }