haavardj / ngx-cron-editor

Graphically build CRON expressions in Angular 15+
https://github.com/haavardj/ngx-cron-editor
MIT License
44 stars 101 forks source link

Cron expression generated as null for minutes tab. #26

Closed raBot1994 closed 7 months ago

raBot1994 commented 11 months ago

Hi,

On the minutes tab, the default value that loads on the dropdown is 1.

image

If I not change this (triggering the onChange function of the dropdown) , the resulting cron expression is generated as null.

If I click on the dropdown and change the value from 1 -> 3 and then back to 1. (Which is guess is triggering an event) , then the cron expression is generated properly.

Is there any workaround for this?

{
    formInputClass: 'form-control cron-editor-input',
    formSelectClass: 'form-control cron-editor-select',
    formRadioClass: 'cron-editor-radio',
    formCheckboxClass: 'cron-editor-checkbox',

    defaultTime: '00:00:00',

    hideMinutesTab: false,
    hideHourlyTab: false,
    hideDailyTab: false,
    hideWeeklyTab: false,
    hideMonthlyTab: false,
    hideYearlyTab: false,
    hideAdvancedTab: true,
    hideSpecificWeekDayTab: false,
    hideSpecificMonthWeekTab: false,

    use24HourTime: true,
    hideSeconds: true,

    cronFlavor: 'standard',
  }
haavardj commented 11 months ago

Closed the wrong issue in commit 40700a9

haavardj commented 11 months ago

@raBot1994 Can you please verify that you have the most up-to-date version of the editor? From the screenshot, it seems like you are using an old one.