function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joseph WildeyJoseph Wildey 

Lightning component ternary operator in change/blur attribute

Without wrapping the tag in an <aur:if..> block, is there a better way to do the following conditional attribute: 
blur="{! v.isS1Mobile ? c.dissussionPointChange : c.doNothing }" change="{! !v.isS1Mobile ? c.dissussionPointChange : c.doNothing }"
A little more detail behind it: If it's a mobile device, I need it to run the blur event, but not if it's running on a desktop.  Conversely, if it's a not on mobile I need it to run as a change event.  (This is to handle some quirkiness in the iPhone multi-select dialog.)  I've tried variations on the code snippet above to have the third operator just be thigns like true, false, blank, no third operator, but the browser always throws an error.  I've also tried different ways of using IF, but I either my syntax isn't working or you can't do that.  Instead I created a lightning component function that does nothing so I can successfully include the third argument.  Seems like there should be a better way, though.