Closed petarov closed 7 years ago
By default the dialog is attached to 'document.body'. This seems to be a problem with some frameworks, i.e., Ionic 1.3. One may now pass the parent element as a 'dialog.parent' option.
Example:
nonRenewing.initialize({ dialog: { parent: document.querySelectorAll('.my-view')[0] },
Should also fix issue #10.
Great, thanks for contributing! Would it be possible document this in the README as well (to make this PR complete, and used by people).
@j3k0 thx a lot for your fast feedback!
By default the dialog is attached to 'document.body'. This seems to be a problem with some frameworks, i.e., Ionic 1.3. One may now pass the parent element as a 'dialog.parent' option.
Example:
Should also fix issue #10.