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

clearable and placeholderTest unavailable for DatePicker #19

Open
Xabibax opened this issue Aug 18, 2021 · 0 comments
Open

clearable and placeholderTest unavailable for DatePicker #19

Xabibax opened this issue Aug 18, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Xabibax
Copy link

Xabibax commented Aug 18, 2021

Describe the bug
When passing placeholderText as props in a Date property. The rendering doesn't show any text in the DatePicker.
The same goes for clearable.

Installed libraries and their versions

To Reproduce
Steps to reproduce the behavior:

  1. Add a placeholder props through property options :
....
"customers.startDate": {
  ...
  props: {
    showYearDropdown: true,
    isClearable: true,
    scrollableYearDropdown: true,
    dropdownMode: "select",
    minDate: minDate.valueOf(),
    placeholderText: "1970-01-01",
  },
  isRequired: false,
},
....
  1. issue date picker

  2. Content of the input :

<input class="sc-iqAbSa hTnUdy admin-bro_Input" value="">

Expected behavior
The text value pass through property options should appear as a placeholder in the date input as well as a button to clear the Date

Screenshots
expected date picker

Desktop (please complete the following information if relevant):

  • Browser [chrome, edge]
@dziraf dziraf transferred this issue from SoftwareBrothers/adminjs Nov 12, 2021
@dziraf dziraf added the bug Something isn't working label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants