Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Binding lightning:input checkbox value. Must bind to 'checked' not 'value'
<aura:attribute name="testBoolean" type="Boolean" default="false" />
<lightning:input name="testBoolean" label="Test Boolean" type="checkbox" checked="{!v.testBoolean}" />
@parthi22

This comment has been minimized.

Show comment Hide comment
@parthi22

parthi22 Feb 11, 2018

Hey, does this fire onChange event?

Hey, does this fire onChange event?

@rickschmidt

This comment has been minimized.

Show comment Hide comment
@rickschmidt

rickschmidt Feb 20, 2018

Yes but the 'c' is lowercase. ie. onchange.

From the docs : "You can define a client-side controller action for input events like onblur, onfocus, and onchange." https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_input.htm

Yes but the 'c' is lowercase. ie. onchange.

From the docs : "You can define a client-side controller action for input events like onblur, onfocus, and onchange." https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_input.htm

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