Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
tabEndNewRow deletes value of last cell

Tabulator documentation tells us that

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.

but in my code the tab pressed on last cell if it is editable it DELETEs the cell's value

    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,
    })

Working jsFiddle https://jsfiddle.net/radek/xe4qbL5k/6/

would you have any solution for that issue?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think you found a bug in Tabulator. In version 5.1.0 if you look at the not-minified version you can see the line

// cell.getElement().firstChild.blur();

commented out on line 13359. Commenting this line out causes the new row to be added before the changes to the current row are processed. I checked version 5.0.10 and it did not have that line commented but it shows some other errors. With 4.9.3 your fiddle works fine.

jsFiddle

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda