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
Fix options overwritten by super #17975
Fix options overwritten by super #17975
Conversation
@@ -6,11 +6,12 @@ module Tags # :nodoc: | |||
class TextField < Base # :nodoc: | |||
include Placeholderable | |||
|
|||
def render | |||
def render(&block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need (&block)
(it's slower than not having it here) if just using block_given?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egilburg cool, i'll do it
d56c636
to
98d10d7
Compare
It is hard to tell what is the fix here since we also have a refactoring. Why it was not working? |
Ok, got it. When we call super we reset the options argument with |
Could you change your commit message to match the code change? |
98d10d7
to
112274e
Compare
@rafaelfranca done |
Fix options overwritten by super
Fix options overwritten by super
Thank you |
Fix options overwritten by super Conflicts: actionpack/lib/action_view/helpers/tags/text_field.rb
search_field helper had no test for the onsearch option, an indeed it was not working, this pr fix this