SoftwareBrothers / adminjs-design-system

DesignSystem on which AdminJS is based on
28 stars 33 forks source link

clearable and placeholderTest unavailable for DatePicker #19

Open Xabibax opened 3 years ago

Xabibax commented 3 years ago

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,
    },
    ....
  2. issue date picker

  3. 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):