With new Summer '18 release following code returns empty list:
component.find("social-security-number-form").find({instancesOf : "lightning:input"})
"social-security-number-form" is an aura:id of components div wrapper.
In Spring '18 this line returned a list of all inputs that I have in my form and also it works just fine if I replace lightning:input with ui:input.
Does anybody know why this approach is not working for lightning: components in new release?
Best Answer
I was going through some old unanswered questions and stumbled upon this. I am currently on Summer'18 and below worked for me. Perhaps it has been fixed? If not, are you able to provide steps to replicate this issue?
Component
Controller JS