bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Task Edit Cancel Method clears all the input and does not close the task editor. #9855

Open taauntik opened 1 month ago

taauntik commented 1 month ago

Forum post

Hi, when i execute task editors cancel function i expect the task editor to close. but i noticed that all the input is cleared and task editor remains open.

Gantt.feature.TaskEdit#function-cancel

Demo taskEdit.gif

Could you tell me why this happens, and how to revert changes and close the taskeditor ?

To reproduce:

  1. add this code the basic gantt demo
    features : {
        taskEdit : {
            editorConfig : {
                autoClose : false
            }
        }
    },
  2. Open the task editor
  3. run this code in the console gantt.features.taskEdit.cancel(); And you'll see all the inputs are empty but editor isn't closed