Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR on creating gridster inside mat tab group #380

Open
Jigna-Rathod opened this issue Sep 16, 2020 · 0 comments
Open

ERROR on creating gridster inside mat tab group #380

Jigna-Rathod opened this issue Sep 16, 2020 · 0 comments

Comments

@Jigna-Rathod
Copy link

Following error occurs when i load gridster inside mat-tab-group
core.js:6014 ERROR TypeError: Cannot read property 'parentNode' of null
at parents (angular2gridster.js:175)
at scrollParent (angular2gridster.js:214)

        <mat-tab-group [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
            <mat-tab *ngFor="let tab of sheetTabs; let index = index" [label]="tab"> 



        <ngx-gridster [options]="gridsterOptions" [draggableOptions]="gridsterDraggableOptions"
            (reflow)="onReflow($event)" (optionsChange)="optionsChange($event)" #gridster1 class="dashboard">

            <ngx-gridster-item *ngFor="let widget of exportSheet.widgets; let indx = index" #itemComp
                (change)="updateWidgetPosition(itemComp,indx)" [options]="itemOptions"
                [dragAndDrop]="widget.dragAndDrop" [resizable]="widget.resizable" [(w)]="widget.gridProps.w"
                [(h)]="widget.gridProps.h">


              </ngx-gridster-item>

        </ngx-gridster>
        </mat-tab>
        </mat-tab-group>

Specs::
Angular 8
"angular2gridster": "^8.1.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant