GithubHelp home page GithubHelp logo

Comments (5)

tresko avatar tresko commented on May 18, 2024 1

Thank you. You can change focus with "focusedInput" prop.

Here is an example: https://codesandbox.io/s/awesome-greider-kw3l8

from react-datepicker.

tresko avatar tresko commented on May 18, 2024 1

Sorry for the late answer. You can edit CSS properties with ThemeProvider.

Here is an example of your use case: https://codesandbox.io/s/suspicious-hertz-hd8jb

from react-datepicker.

sofiageo avatar sofiageo commented on May 18, 2024

Thanks, the focus works, but my problem is that the position of the calendar is absolute so it messes up my layout. If I manually remove the absolute position from the developer tools it works perfect.

Do you think adding a property to change the absolute position behaviour would be a nice addition to the library?

from react-datepicker.

sofiageo avatar sofiageo commented on May 18, 2024

It works fine with ThemeProvider. Thanks for the example. I'm having an issue when passing a function to the reducer. The function is setFieldValue of the library Formik. When I do that, the calendar closes when I select the endDate. I will keep investigating what causes it to close.

I'm not sure I can help you much with implementing the additional property. I've only been using TS for a few days. But if you are not in a hurry I can give it a try next week.

from react-datepicker.

tresko avatar tresko commented on May 18, 2024

I'm not in a hurry, so you can try.

from react-datepicker.

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.