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

cfinput disabled argument is incorrect #1505

Open
jahschwa opened this issue Jun 17, 2022 · 0 comments
Open

cfinput disabled argument is incorrect #1505

jahschwa opened this issue Jun 17, 2022 · 0 comments

Comments

@jahschwa
Copy link

Currently cfinput shows disabled as a boolean. However, that's not actually the behavior. Both of these result in a disabled input field:

<cfinput name="foo" disabled=true>
<cfinput name="foo" disabled=false>

This is because ColdFusion treats this attribute the same as HTML does; its presence at all activates its effect:
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-i/cfinput.html

So while you technically can pass true or false, both values exhibit the same behavior, disabling the field. The only way to keep the field enabled is to exclude the attribute entirely:

<cfinput name="foo">

I wanted to PR this, but at a glance it looks like this isn't handled in the schema, so hoped someone could chime in on the correct approach here.

Tested on CF 2018.

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

2 participants