On a button press, I am attempting to validate my Lightning input fields before taking an action.
For fields marked as required, I am validating that the input field has a value with something like:
if (component.find("exampleInput").get("v.validity").valueMissing) {
// Invalid input
}
This logic works in all browsers that I've tested except for Edge, for which with a user-inputted value of, say, "Test"
, I see:
component.find("exampleInput").get("v.validity").valueMissing = true
and
component.find("exampleInput").get("v.value") = "Test"
Has anyone come across this issue in Edge? I'm not sure why the input component says that a value is missing.