Ng-bootstrap: Documentation: collapse/markup error at Self-Closing Alert

Created on 25 Oct 2016  路  3Comments  路  Source: ng-bootstrap/ng-bootstrap

Bug description:

Documentation shows error when collapsing the code at "Self-Closing Alert".
(link: [https://ng-bootstrap.github.io/#/components/alert])

This error message is shown in the browser log:

EXCEPTION: Cannot read property 'markup' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'markup' of undefined
    at t._View_n2.detectChangesInternal (n.ngfactory.js:277:87)
    at t.detectChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15495)
    at t.detectContentChildrenChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15877)
    at t._View_n4.detectChangesInternal (n.ngfactory.js:286:8)
    at t.detectChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15495)
    at t.detectContentChildrenChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15877)
    at t._View_n3.detectChangesInternal (n.ngfactory.js:235:8)
    at t.detectChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15495)
    at t.detectContentChildrenChanges (https://ng-bootstrap.github.io/js/vendor.615300bddb638ab05dd5.js:4:15877)
    at t._View_n0.detectChangesInternal (n.ngfactory.js:82:8)
Uncaught TypeError: Cannot read property 'markup' of undefined

bug demo

Most helpful comment

Thnx @curtisrutland - I've updated my PR #964 (plus went over the whole documentation site and found one more pb in accordion - this is fixed as well).

All 3 comments

Thnx for reporting, it is indeed a pb on our demo site. Sent a PR to correct this.

Similar issue on the tabs page; expanding the code for most of the samples results in an error Unable to get property 'markup' of undefined or null reference.

Thnx @curtisrutland - I've updated my PR #964 (plus went over the whole documentation site and found one more pb in accordion - this is fixed as well).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GuitarHero1969 picture GuitarHero1969  路  3Comments

rolandoldengarm picture rolandoldengarm  路  3Comments

riksof-zzlalani picture riksof-zzlalani  路  3Comments

mahmoudajawad picture mahmoudajawad  路  3Comments

CarlosTorrecillas picture CarlosTorrecillas  路  3Comments