adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
724 stars 737 forks source link

[Embed] Validation inconsistency for URL field #2671

Open steph150 opened 4 months ago

steph150 commented 4 months ago

Bug Report

Current Behavior The URL field (under the URL radio button type) gives a validation error when user has not yet clicked into the URL field. User has only clicked on another radio button option before clicking back on URL radio button option.

Steps to replicate:

  1. Drag and Drop an embed component.
  2. Click on "Embeddable" radio button.
  3. Click on "URL" radio button. Please note at this point of time user is yet to click on URL field and has only clicked on URL radio button but mandatory validation kicks in and user sees "Please enter a valid URL".
Screenshot 2024-02-09 at 2 28 37 pm

Now if we compare the same behaviour with HTML:

Expected behavior/code

The URL field should behaviour similar to HTML field, where no validation error is shown if user has not clicked into the URL field.

Environment