-
Notifications
You must be signed in to change notification settings - Fork 133
Cannot set property 'backdrop' of undefined #217
Comments
It sounds like you're maybe setting the backdrop attribute like this:
Which is looking for a property on your component called "static", which is undefined. You need to set the backdrop attribute like either
or
Which will pass the string "static" to the modal component. See Static Modal in the readme for an example. |
I'm having the same issue, I'm using it as |
Looks like I need to add some tests around this... I'll take a look. Thanks for the detail @amitdahan. |
Just confirmed this happened to me when I was using |
I tried doing the samething but error. I am using "bootstrap": "^4.0.0-beta.2 |
This package shouldn't work with bs4, hence the name I guess |
I had it working with alpha till I upgraded to angular5 and got the latest version of this. I believe < .11 was working for me. |
.10.4 specifically.. trying to rollback and see if it still works with angular5 and BS4 Beta |
Was there any update on this as the error still seems to be present with angular 5 and BS4 |
|
This issue is still happening. Any update? I am setting the [backdrop]="'static'" and receive the same error |
We moved away from this modal and opted for Angular Material which seems to
do the trick.
…On Thu, 15 Nov 2018 at 12:12, Servé Hermans ***@***.***> wrote:
This issue is still happening. Any update? I am setting the
[backdrop]="'static'" and receive the same error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#217 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APCizQDNzqW4CutlaKOr_dn-L5eAWtbAks5uvVomgaJpZM4Qahiv>
.
|
I get this error:
The problem occurs at line _this.options.backdrop = backdrop:
Suggestion for a fix:
The text was updated successfully, but these errors were encountered: