Coder Social home page Coder Social logo

Comments (19)

IamManchanda avatar IamManchanda commented on May 8, 2024 6

I need to select August 12, 1993. I can't go month by month until 1993. 😅

A very important feature to me for my upcoming projects... 😞

Any updates on this feature dear friends?

from buffet.

crussell42 avatar crussell42 commented on May 8, 2024 6

Is there any update on this?
Very bad user interaction with date picker.
Trying to set the date by typing in the text input is basically impossible.
Really really need a working datepicker in the admin.

from buffet.

ManAnRuck avatar ManAnRuck commented on May 8, 2024 1

@abdonrd

is it possible to clear this datepicker if it's an optional field?

when I try to remove the value and click outside the old value returns and I don't see a clear button.

from buffet.

MattieBelt avatar MattieBelt commented on May 8, 2024 1

Hey @Antoine-arranz,

Strapi has released a new Design System for Strapi v4, you can checkout the new Date component.

from buffet.

soupette avatar soupette commented on May 8, 2024

So the lib that we are using react-dates does not have this option... However, what we can do is allowing the change of year using the input which is currently in readonly will that be a suitable option?

from buffet.

abdonrd avatar abdonrd commented on May 8, 2024

That would work for me, yes! 😄

from buffet.

soupette avatar soupette commented on May 8, 2024

I'll see what I can do then! I will try to make some modifications before January 2020

from buffet.

abdonrd avatar abdonrd commented on May 8, 2024

Great, thanks @soupette! 👏

from buffet.

soupette avatar soupette commented on May 8, 2024

@abdonrd I have created a PR that allows the change of year directly from the input component.
However, I am running into an issue where I am unable to open the date picker at the selected date... Nevertheless the component is still usable.

from buffet.

abdonrd avatar abdonrd commented on May 8, 2024

Thanks for the update, @soupette!

from buffet.

soupette avatar soupette commented on May 8, 2024

@ManAnRuck currently it is not possible and I think that it should be solved. I'll try to open up a PR to fix it. Can you open an issue so we can keep track of this bug?

from buffet.

ManAnRuck avatar ManAnRuck commented on May 8, 2024

@soupette sure, thank you :)

#97

from buffet.

gabrielgmrs avatar gabrielgmrs commented on May 8, 2024

@IamManchanda I agree. My case is similar, with birthdates.

Typing on the input is not working, since the datepicker appear to overwrite the value.
Even if it was possible, here in Brazil the users are very acquainted with with DD/MM/YYYY instead of MM/DD/YYYY, and maybe it cause some confusion.

My solution for now is to use text type.

from buffet.

toriecr avatar toriecr commented on May 8, 2024

Is there any update on this?

from buffet.

soupette avatar soupette commented on May 8, 2024

We are planning to update the entire design system of the administration panel and we are taking in consideration all feedback provided regarding the date picker. In the meantime, we have provided a temporary fix that allows to change the date of a datepicker using the text input of the same component so a user can directly set a date.

If the provided component really does not suit your needs you can create your own datepicker component and replace the existing one in your project, you can follow this guide from our official documentation, it explains how to change the WYSIWYG so you can easily apply the same logic to change the date picker.

from buffet.

toriecr avatar toriecr commented on May 8, 2024

@soupette thank you for your response. I followed the guide you provided, along with this guide to implement my own datepicker and I still seem to be having issues. I'm wondering where would be a good place to ask clarifying questions about the docs. My issue might be related to the useStrapi() hook, and there isn't much explanation on that hook.

from buffet.

soupette avatar soupette commented on May 8, 2024

The guide I provided explains how to change a field, regarding the useStrapi hook it allows to access the components that are added by other plugins, you don't need it in order to change the datepicker.

from buffet.

Antoine-arranz avatar Antoine-arranz commented on May 8, 2024

Hello, any news or workaround?

from buffet.

Antoine-arranz avatar Antoine-arranz commented on May 8, 2024

@MattieBelt Thanks !

from buffet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.