-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
After upgrading to 2.2.0, <input> tag 'readonly' attribute is not rendered #151
Comments
re @mitar: I will try to add some test, although not sure when I find time for it :-/ |
I have the same problem // Work fine for blaze 2.1.9, but now don't work
{{> afQuickField name='branchId' readonly=true}} How to fix? |
I done some tests with my project.
Any helper like I also test an input like jancurn said: For me works fine. |
Thanks, but I use Template.login.helpers({
attrs(){
return {
readonly: false
};
},
});
--------
{{> afQuickField name='branchId' attrs}} Could you help me? |
Now I downgrade to |
@thearabbit - Could you please tell me how you downgraded to 2.1.9? |
please look in .meteor/
versions And then find the |
hey guys, I wanted to write a test for this bug, but I wasn't able to find out how to run tests in this project... |
One approach is explained in #70. What I do is I configure
|
@mitar I put a break point inside |
With the same example, the debug shows me: The first object is the attributes declared in HTML. But But HTML.isNully don't interpret the value false as nully, adding it to the list that render attributes. So HTML is still rendered in the wrong way with
|
Maybe other commit is impacting. |
@gcacars: Any progress on fixing this? |
People are reporting success with changing the attribute name from So if perhaps this is a case sensitivity issue, can't we just make the name comparison in Line 285 in 95d68da
|
I can confirm that:
Works fine, but only on String input types. |
@mitar - Safe to upgrade to the latest version without any modifications? (readonly to readOnly) ? |
I hope so. :-) 2.2.1 should work the same as 2.1.9. But I would love feedback. :-) |
Hi there, after I upgraded blaze@2.1.9 to blaze@2.2.0 in our Meteor app, the 'readonly' attributes on tag are no longer rendered. This only happens if the tag has some dynamically generated attributes, for example:
This one works correctly:
I replicated the problem also in "Todos" example app. I cloned the repo from https://github.com/meteor/todos, updated meteor and all packages to their latest versions and have the same problem (actually I tested the above code in Todos app). When I downgraded to blaze@2.1.9, readonly attribute is rendered (although not as boolean attribute like 'disabled', but that's another story). Strangely enough, other attributes like 'disabled' are rendered normally.
The text was updated successfully, but these errors were encountered: