@pepperi-addons/ngx-composite-lib 0.4.2-beta.84 → 0.4.2-beta.86

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.
@@ -932,7 +932,7 @@ class SectionComponent extends BaseDestroyerDirective {
932
932
  }
933
933
  set collapseOnTablet(value) {
934
934
  this._collapseOnTablet = value;
935
- this.pepScreenSizeToFlipToVertical = value ? PepScreenSizeType.MD : PepScreenSizeType.SM;
935
+ this.pepScreenSizeToFlipToVertical = value ? PepScreenSizeType.MD : PepScreenSizeType.XS;
936
936
  this.refreshSplit();
937
937
  }
938
938
  get collapseOnTablet() {
@@ -1943,7 +1943,6 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
1943
1943
  this.viewportWidth = 0;
1944
1944
  this.pepAddonService.setShellRouterData({ showSidebar: false, addPadding: false });
1945
1945
  this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout-builder');
1946
- this.layoutBuilderInternalService.setEditMode(true);
1947
1946
  }
1948
1947
  set availableBlocksForDrag(value) {
1949
1948
  this._availableBlocksForDrag = value;
@@ -2038,6 +2037,7 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
2038
2037
  });
2039
2038
  }
2040
2039
  ngOnInit() {
2040
+ this.layoutBuilderInternalService.setEditMode(true);
2041
2041
  // Get the first translation for load all translations.
2042
2042
  this.translate.get('LAYOUT_BUILDER.DESKTOP').subscribe((res) => {
2043
2043
  this.screenTypes = [
@@ -2048,6 +2048,10 @@ class PepLayoutBuilderComponent extends BaseDestroyerDirective {
2048
2048
  });
2049
2049
  this.subscribeEvents();
2050
2050
  }
2051
+ ngOnDestroy() {
2052
+ super.ngOnDestroy();
2053
+ this.layoutBuilderInternalService.setEditMode(false);
2054
+ }
2051
2055
  onResize(event) {
2052
2056
  this.updateViewportWidth();
2053
2057
  }