-
Notifications
You must be signed in to change notification settings - Fork 255
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
Unsupported ViewComponent slots in SMS and Email tools #3102
Comments
Can you say what version of Blacklight you are using please? What version this is broken with, and what version you were previously using that it worked with? It sounds like maybe we don't have tests covering those components. :( |
As a workaround until this is fixed, you can probably get things to work by continuing to use
That will make your app restrict to 2.x, even though BL says it supports either 2.x or 3.x -- since you have apparently discovered that certain features are actually broken with 3.x. |
I'm using Blacklight 8.0.1. I don't have previous experience with Blacklight, so that's all the info I have. I was able to fix this temporarily by adding the following to my gemfile:
Thanks for your quick reply. |
The gemspec for Blacklight specifies a version of ViewComponent that is
'>= 2.66', '< 4'
. In my project, with ViewComponent 3.0, the SMS and Email tools were not rendering correctly. Per the ViewComponent changelog, ViewComponent 3.0 contains the following breaking changes:The SMS and Email tools are still rendered using the deprecated setter methods. Here's the SMS code for example:
This code can be fixed by updating it to the following:
The alternative solution is to limit the ViewComponent version to something < 3.0, but it seems like transition to the newer setter methods has been started.
The text was updated successfully, but these errors were encountered: