La documentación del tabulador nos dice que
The tabEndNewRow option will cause the table to create a new row and add focus on the first editable cell in that row when you tab out of the last editable cell on the table. You can set it to one of a number of options to determine the data of the new row.pero en mi código, la pestaña presionada en la última celda si es editable, ELIMINA el valor de la celda
var cols = [{ title: "Cell 1", field: "c1", editor: "input" }, { title: "Cell 2", field: "c2", editor: "input" }, { title: "Cell 3", field: "c3", editor: "input" }, ]; var row = { "c1": "", "c2": "" } var table = new Tabulator('#table', { columns: cols, data: [row], height: "100%", tabEndNewRow: row, })Trabajando jsFiddle https://jsfiddle.net/radek/xe4qbL5k/6/
tendrias alguna solucion a ese problema?
Creo que encontraste un error en Tabulator. En la versión 5.1.0, si observa la versión no minimizada, puede ver la línea
// cell.getElement().firstChild.blur();comentó en la línea 13359. Comentar esta línea hace que se agregue la nueva fila antes de que se procesen los cambios en la fila actual. Revisé la versión 5.0.10 y no tenía esa línea comentada pero muestra algunos otros errores. Con 4.9.3 tu violín funciona bien.