Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When setting the cron expression '* * * * * * *' as the initial value and opening the generator, it is not recognized. #55

Closed
developergunny opened this issue Sep 26, 2023 · 2 comments

Comments

@developergunny
Copy link

Intended behavior:
When '* * * * * * ' is entered, the custom header should be selected, and ' * * * * * *' should be filled in.

However, an error message saying "An error occured when generating the expression description. Check the cron expression syntax." appears.

or

When the time tab is selected, it automatically converts to '0 0 00 1/1 * ? *'.

  const [result, setResult] = useState('* * * * * * *');
  
  <Cron
      onChange={(e) => {
          setResult(e);
      }}
      value={result}
      showResultText
      showResultCron={false}
  />
@developergunny
Copy link
Author

I've identified that the issue occurred due to my mistake of executing onChange once during rendering.

I apologize for raising the issue without checking thoroughly.

Closing the issue.

@sojinantony01
Copy link
Owner

sojinantony01 commented Sep 26, 2023

@developergunny
Thanks for using the package.
please revert back if any support required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants