react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Css / Styling not working

Open SimonGribert opened this issue 6 years ago • 5 comments

Describe the bug The styling seams to be missing, and when i click the input, all the dates just stack on top of the input.

To Reproduce Steps to reproduce the behavior:

  1. npm install react-datepicker
  2. import react-datepicker
  3. Use default example from https://reactdatepicker.com/
  4. Styling gone

Expected behavior I expect the styling / css to work as default.

Screenshots image

Desktop (please complete the following information):

  • OS: [mcOS Catalina 10.15.6]
  • Browser [Chrome]
  • Version [^3.1.3]

SimonGribert avatar Aug 18 '20 15:08 SimonGribert

Experiencing the same behavior.

coldapache avatar Aug 19 '20 04:08 coldapache

This helped me: https://github.com/Hacker0x01/react-datepicker/issues/1707

import "react-datepicker/dist/react-datepicker.css";

https://github.com/Hacker0x01/react-datepicker/#installation

tamj0rd2 avatar Aug 20 '20 14:08 tamj0rd2

This helped me: #1707

import "react-datepicker/dist/react-datepicker.css";

https://github.com/Hacker0x01/react-datepicker/#installation

Still css not working :(

umedsondoniyor avatar Sep 01 '20 08:09 umedsondoniyor

This helped me: #1707

import "react-datepicker/dist/react-datepicker.css";

https://github.com/Hacker0x01/react-datepicker/#installation

Still css not working :(

I had the same issue. Im guessing you ran the npm install procedure, included the css & import in your jsx and then just saved to see changes?

Try restarting the npm script, everything worked as expected for me.

emmanuelay avatar Sep 07 '20 09:09 emmanuelay

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 19 '21 22:03 stale[bot]