Changed event for "Redirect From" field for URL validation.
Previously it was on a change event, so validation was not happening unless we click out of the text field. Because of that publish button disabling was irregular and confusing.
So made it on keyup event and added ajax abort to avoid simultaneous requests.
Also added a typing wait time of 850 ms so when user stops typing, then URL validation will happen.
Based on this validation process, disabling/enabling submit button became regular now.
Also added a loding icon when user start typing, so that they know something is happening.
Description of the Change
Changed event for "Redirect From" field for URL validation.
change
event, so validation was not happening unless we click out of the text field. Because of that publish button disabling was irregular and confusing.keyup
event and added ajax abort to avoid simultaneous requests.Video for better understanding for above bullet points https://somup.com/cZnTI6pzGz
Closes #366
How to test the Change
Changelog Entry
Credits
@BhargavBhandari90, @peterwilsoncc
Checklist: