xrutayisire / react-js-cron

A React cron editor built with antd
https://xrutayisire.github.io/react-js-cron/?path=/docs/reactjs-cron--demo
MIT License
238 stars 105 forks source link

Cron has broken style in antd 5 #54

Closed kloon15 closed 1 year ago

kloon15 commented 1 year ago

Describe the bug Cron component has broken style when used in antd 5. Hour and minute picker is unusable.

CodeSandbox A CodeSandbox link with the bug.

Versions (please complete the following information):

xrutayisire commented 1 year ago

Hello,

As mentioned in the README, since v3.0 you need to manually import Cron styles:

import 'react-js-cron/dist/styles.css'

CodeSandbox: https://codesandbox.io/s/sharp-edison-7cph0n?file=/src/App.tsx

kloon15 commented 1 year ago

Thank you, i missed it since i went straight to the demo and usage which is at top of the page.