Wrong location/position of the textbox of SimpleTaskEdit feature when I press [Enter] for multiple tasks, here it's the test case:
-
I have installed the new version of the TaskBoard component that is "4.2.1".
-
I have configured the "SimpleTaskEdit" feature with the property "addNewAtEnd" in "true" and other behavior like so:
... simpleTaskEdit: { disabled: false, addNewAtEnd: true, editorConfig: { invalidAction: 'block', onCancel: function () { me.getView()._taskboard.project.taskStore.revertChanges(); }, onComplete: function () { me.getView()._taskboard.project.autoSync = true; me.getView()._taskboard.project.sync(); } } }, ...
-
I have the following code when I click on the "addTask" button in "columnToolbars":
me.getView()._taskboard.project.autoSync = false; me.getView()._taskboard.addTask(columnRecord);
-
I defined the backend URL of the project SYNC action of the TaskBoard.
-
So, when I clicked on the "addTask" button appears me the first card with the textbox in the name of the task with the following configuration:
headerItems: { ... text: { field: 'name', editor: { type: 'text', cls: 'task-card-textbox', required: true, placeholder: 'Escribe el nombre de la tarea', maxLength: 100, minLength: 1, height: 32 }, order: 2 }, ... }
-
I will explain the steps of the following image:
- In step 1. I type the task name and press the [Enter] key, when I do that comes the step 2.
- In step 2. The sync triggers and do the backend request returning the task data that I have added with the ID generated at the database side, when the response arrives, all extra data fills the "bodyItems" that I have defined in the card but when this happens comes the step 3.
- In step 3. The next card added shows the textbox in an incorrect location/position in the card as you can see in the previous image of step 3.
-
Staying in the textbox if I press [Escape] the "onCancel" event of the "Editor" triggers and I execute the "_taskboard.project.taskStore.revertChanges();" method of the taskStore but doesn't remove the card like so:
I have to do a "_taskboard.project.load();" to load the data again from the backend, only this remove this wrong card.
So, my questions here are:
-
How to position correctly the textbox of the "SimpleTaskEdit" feature?
-
How to remove only the card that I have cancelled by pressing the [Escape] key without having to load all the Taskboard?
Regards