-
Notifications
You must be signed in to change notification settings - Fork 113
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
TypeError when closing a Modal #759
Comments
@mike-north why not accept PR ? |
I suspect that he has not had time or interest to continue maintaining this project (I know that that happens to me quite a bit -- it's often more involved than simply accepting a PR: review, CI tweaks, changelog, publishing, ...). There's quite a bit of effort that would be needed to bring this addon up to the latest Ember conventions, etc. There has also been very little visible activity on Materialize (see Dogfalo/materialize#6438 (comment)), which may also be contributing. |
He had a year to review the PR, so I can assume that this project is abandoned, true ? |
@vladern the project needs a lot of work to be maintained. I don't know if the developer is going to take a look to all PRs. The best way to go is to create a fork of the project. I made a lot of improvements (never merged into master) and I have a lot of knowledge of the repo, let me know if you need help with that 😄 . |
Describe the bug
When I try to close a modal clicking outside it, the console throws an error and it doesn't calls the action to close in the controller. I think it's a problem with the latest versions of Ember and the compatibility with the library modal-dialog.
This is because
this.get('onClose')
in model-dialog is a string instead a function.To Reproduce
Steps to reproduce the behavior:
md-modal
.TypeError: this.get(...) is not a function
.Expected behavior
It should call the controller action.
Desktop (please complete the following information):
Additional context
I think that's going to need to remove
sendAction
in the following lines. Like this:Not tested. Could it have some problem with older Ember versions? The change is very little so I'm going to make and discuss about it after being done.
The text was updated successfully, but these errors were encountered: