Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Forms] Input required doesn't work with input type date #976

Open
MirelaPaun opened this issue Jan 15, 2021 · 1 comment
Open

[Forms] Input required doesn't work with input type date #976

MirelaPaun opened this issue Jan 15, 2021 · 1 comment

Comments

@MirelaPaun
Copy link

Describe the bug
Input required doesn't work with input type date, the red asterisk is not displayed

To reproduce

  • Add an input type date with required property
  • See that the red asterisk is not displayed
  • If you check the DOM (see the screenshot), only the first input has required attribute, the second one has not the required attribute. In case of input type date, we have 2 inputs in the DOM, one is fake.

Expected behavior
Input required should work with all types of inputs.

Framework usage
React: 16.13.1
"@tradeshift/tradeshift-ui": "^12.6.0",

Desktop (please complete the following information):
All browsers

Smartphone (please complete the following information):
All devices

Additional context
image

@lauratanase
Copy link

lauratanase commented Jan 15, 2021

Created an issue in the team's Jira board

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants