lightning:input
has both showHelpMessageIfInvalid() and reportValidity() methods that seem to do the same job.
showHelpMessageIfInvalid
Shows the help message if the form control is in an invalid state.
reportValidity
Display error messages if the input is invalid.
Yet lightning:select
has only the showHelpMessageIfInvalid() method.
Since I have both lightning:input and lightning:select elements on my form, I cannot use the reportValidity() method on them.
So what's the difference between showHelpMessageIfInvalid() and reportValidity()? And can I use showHelpMessageIfInvalid() instead of reportValidity() in my case?