Skip to content
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

Conditional "readonly" attribute does not work #1874

Closed
dylanrtt opened this issue Sep 1, 2015 · 4 comments
Closed

Conditional "readonly" attribute does not work #1874

dylanrtt opened this issue Sep 1, 2015 · 4 comments

Comments

@dylanrtt
Copy link
Contributor

dylanrtt commented Sep 1, 2015

I can use a mustache condition block to make an element have a conditional disabled attribute but it does not work with readonly. It simply never applies the attribute regardless of the condition's truthiness.

http://jsbin.com/horehelute/edit?html,js,console,output

@justinbmeyer
Copy link
Contributor

Interesting. I assumed it work would b/c readonly is configured here: https://github.com/bitovi/canjs/blob/minor/util/attr/attr.js#L47

@justinbmeyer
Copy link
Contributor

@alexisabril this is probably pretty simple. Although the test should probably take place in can/util/attr. I would start there to make sure it's doing what it should be doing.

@DesignByOnyx
Copy link
Contributor

readonly attribute maps to readOnly property - could be a start...

@daffl
Copy link
Contributor

daffl commented Sep 29, 2015

Closed via #1920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants